Coggle requires JavaScript to display documents.
:
*
studentNameAgeMap := make(map[string]int)
type Student struct( number int name string subjects []string )
Number can't over 100
type greeter struct{ greeting string, name string } // func (g greeter) greet(){ fmt.Println(g.greeting, g.name) } // g := greeter{ greeting: "Hello", name: "Go" } g.greet();
a := [3] int {2,5,10}
con trỏ
a := make([ ]int, 10)
a = append(a, [ ]int{1,2,3,4,5}...)
defer 1 defer 2 defer 3
arr := [3]int{2,3,4} for index, value := range arr( // code )