Open utterances-bot opened 3 years ago
https://eddycjy.com/posts/go/go1.16-1/
调整切片扩容策略 有点小问题:
x := cap(append(a[:N-1:N], 9, 9)) // 这里 cap 和 println 重复了 y := cap(append(a[:N:N], 9)) println(cap(x), cap(y))
Go1.16 即将正式发布,以下变更你需要知道
https://eddycjy.com/posts/go/go1.16-1/