package main
import (
"fmt"
)
func squeeze(sl *[]int, splitter int) {
s := *sl
s = s[:splitter]
*sl = s
}
func main() {
sl := []int{1, 2, 3, 4, 5, 6}
fmt.Println(len(sl), cap(sl), sl)
fmt.Printf("%p\n\n", &sl)
squeeze(&sl, 4)
fmt.Println(len(sl), cap(sl), sl)
fmt.Printf("%p", &sl)
}