Prints The Type Of A Value In Golang

[Solved] Prints The Type Of A Value In Golang | Go - Code Explorer | yomemimo.com
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

Answers related to prints the type of a value in golang

Code Explorer Popular Question For Go