package main import ( "fmt" ) func main() { a := []int{1, 2, 3} fmt.Println(a) clear(a) fmt.Println(a) }