prints the type of a value in golang
// printType method prints the type of a value in golang
func printType() {
x := 12
fmt.Printf("%T", x) // output: int
}
Are there any code examples left?
New code examples in category Go
// printType method prints the type of a value in golang
func printType() {
x := 12
fmt.Printf("%T", x) // output: int
}