go 笔记
func rec(i int) { 在go语言里,参数的名称写在类型的前面 22 for index,value :=range arg { 23 println(index,value); 24 } [] int =>slice [5] int => array new returns a pointer. make returns initialized (non zero) values. make creates slices, maps, and channels only, and it returns an initialized (not zero)value of type T, not *T. 无名函数的定义: defer func(x int) {/* ... */}(...阅读全文