📅  最后修改于: 2022-03-11 14:45:02.723000             🧑  作者: Mango
// printType method prints the type of a value in golang
func printType() {
x := 12
fmt.Printf("%T", x) // output: int
}