https://i6448038.github.io/2017/07/28/GolangDetails/
new(type)不为nil
fmt.Println(new(int)==nil) # false
var i *int
fmt.Println(i==nil) # true一个包里可以有多个init函数,多个init函数的调用顺序 https://golang.org/ref/spec#Program_initialization_and_execution
https://i6448038.github.io/2017/07/28/GolangDetails/
new(type)不为nil
fmt.Println(new(int)==nil) # false
var i *int
fmt.Println(i==nil) # true
一个包里可以有多个init函数,多个init函数的调用顺序 https://golang.org/ref/spec#Program_initialization_and_execution