package main import "fmt" func main() { nums := []int{1, 2, 3, 4} nums = append(nums[:1], nums[2:]...) fmt.Println(nums) }