We know Go is pass by value, and the slice is pointer type, then what about the [][]int? I got this code
func add(nums [][]int) {
nums = append(nums, []int{1,2,3})
}
It seems the nums doesn't change after this function. I got confused about the [][]int.