1, direct statement: var slice [] int
2、new: slice := *new([]int)
3, literals: slice: = [] int {1,2,3,4,5}
4、make: slice := make([]int, 5, 10)
5, or from the array slice "taken": slice: = array [1: 5] or slice: = sourceSlice [1: 5]
1, direct statement: var slice [] int
2、new: slice := *new([]int)
3, literals: slice: = [] int {1,2,3,4,5}
4、make: slice := make([]int, 5, 10)
5, or from the array slice "taken": slice: = array [1: 5] or slice: = sourceSlice [1: 5]