Check out example codes for "go add to slice". It will help you in understanding the concepts better.

Code Example 1

var s []int
s = append(s, 0)

Learn ReactJs, React Native from akashmittal.com