package main
import (
"fmt"
"slices"
)
func main() {
// Original slice
slice := []int{1, 2, 3, 4, 5, 6, 7, 8, 9}
// Indices to remove (from `start` to `end - 1`)
start, end := 3, 6
// Remove the subslice
slice = slices.Delete(slice, start, end)
fmt.Println(slice)
}
/*
run:
[1 2 3 7 8 9]
*