This is a creation in Article, where the information may have evolved or changed.
1. Variable parameters, incoming array of hungry time, must add three ... func sums (nums ...int) {}nums := []int{1, 2, 3, 4, 5}sums (Nums ...) 2. If the func with the return value must be specified later in the return value type Func plus (a int, b int) int { return a + b}3. When using closures, the function name, the return value is the func () return value format declaration func intseq () Func () int { i := 0 return Func () int { i += 1 return i }}4. in Go, * flag a pointer,& The indicator points to a variable *PTRI&NBSP;:=&NBSP;&PTR5. The way to use in go, the more interesting place, the feeling is injected (yy) type user struct{ name} func (u *user ) getName string{ return U.name}func main () { u := user{name: "Zhangsan"}&NBSP;&NBSP;&NBSP;&NBSp;fmt. Println (U.getname)}6. Use go in go to do this self-execution (the first time the correct execution, the future has not been successful.) ) Go func (msg string) { fmt. PRINTLN (MSG)} ("Going") 7. Use channel in go to use the go keyword,make can only be applied to Slice,map,channel8. <-chan is ready to receive the sent value, chan<-is only receiving