I’m trying to combine the slice
[1, 2] and the slice
[3, 4] . How can I do this in Go?
cannot use int literal (type int) as type int in append
However, the documentation seems to indicate this is possible, what am I missing?
slice = append(slice, anotherSlice...)