在Golang,var s []int和之间有什么区别s := make([]int, 0)?
var s []int
s := make([]int, 0)
我发现两者都有效,但哪一个更好?
allocation go slice
allocation ×1
go ×1
slice ×1