Answers for "prints the type of a value in golang"

Go
1

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
}
Posted by: Guest on July-03-2021

Code answers related to "prints the type of a value in golang"

Browse Popular Code Answers by Language