Add elements with append:
nums := []int{1, 2, 3}
nums = append(nums, 4)
nums = append(nums, 5, 6, 7)
Append returns a new slice. You must assign the result back. If capacity allows, it modifies the underlying array. Otherwise, it allocates a new one.