In Go, what is the difference between var s []int
and s := make([]int, 0)
?
I find that both works, but which one is better?
See Question&Answers more detail:osIn Go, what is the difference between var s []int
and s := make([]int, 0)
?
I find that both works, but which one is better?
See Question&Answers more detail:os