golangで型情報調べる時に使う
main.go
package main
import (
"fmt"
"reflect"
)
func main() {
fmt.Println(reflect.TypeOf(1)) // int
fmt.Println(reflect.TypeOf("")) // string
fmt.Println(reflect.TypeOf([]string{})) // []string
fmt.Println(reflect.TypeOf(true)) // bool
fmt.Println(reflect.TypeOf(func() {})) // func()
}