Slices / Remove elements from slice / Essential Go

Run Settings
LanguageGo
Language Version
Run Command
package main import "fmt" func main() { s := []int{10, 11, 12, 13} i := 1 // index of 11 n := 2 // remove 2 elements s = append(s[:i], s[i+n:]...) fmt.Printf("s: %#v\n", s) }
Editor Settings
Theme
Key bindings
Full width
Lines