GO 代码的一些查漏补缺
一、入门 1. 地址引用错误 1.1 代码 func main() { slice := []int{0,1,2,3} m := make(map[int]*int) for key,val := range slice { m[key] = &val } for k,v := range m { fm
一、入门 1. 地址引用错误 1.1 代码 func main() { slice := []int{0,1,2,3} m := make(map[int]*int) for key,val := range slice { m[key] = &val } for k,v := range m { fm