package main import ( "fmt" "reflect" ) func main() { var a = [3]int{1,2,3} var b []int fmt.Println(reflect.TypeOf(a)) // [3]int fmt.Println(reflect.TypeOf(b)) // []int fmt.Printf("%T",a) // [3]int fmt.Printf("%T",b) // []int }