imprime le type d'une valeur de golang
// printType method prints the type of a value in golang
func printType() {
x := 12
fmt.Printf("%T", x) // output: int
}
golang obtenir le type de la variable
1. reflect.TypeOf(varName)
2. fmt.Printf("%T\n", varName)