1. 指针数据坑range到底有什么坑呢,我们先来运行一个例子吧。package main import ( "fmt" ) type user struct { name string age uint64 } func main() { u := []user{ {"asong",23}, {"song",19}, {"asong2020",18}, } n := make([]*user,0,len(u)) for _,v := ...
  •   文章分类
回到顶部