golang add value to make function slice code example Example: go add to slice var s []int s = append(s, 0)