Question : prints the type of a value in golang
Answered by : atif-anowar
// printType method prints the type of a value in golang
func printType() { x := 12 fmt.Printf("%T", x) // output: int
}
Source : | Last Update : Sat, 10 Jul 21
Answered by : atif-anowar
// printType method prints the type of a value in golang
func printType() { x := 12 fmt.Printf("%T", x) // output: int
}
Source : | Last Update : Sat, 10 Jul 21