To declare an empty slice, with a non-fixed size, is it better to do:
mySlice1 := make([]int, 0)
or:
mySlice2 := []int{}
Just wondering which one is the correct way.
转载于:https://stackoverflow.com/questions/29164375/correct-way-to-initialize-empty-slice