array golang append code example Example: go append array to array a := []int{1, 2} b := []int{11, 22} a = append(a, b...) // a == [1 2 11 22]