package main import "fmt" func main() { arr := []string{"one","two","three"} arr = append(arr[:2], arr[2+1:]...) fmt.Printf("%v", arr) }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more