(type []int has no field or method append) code example Example: go add to slice var s []int s = append(s, 0)