main.go 128 B

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