Loading…

How we can print type of a variable in Go Programming?

var x, y, z = 3, 4, "foo"
fmt.Printf("x is of type %Tn", x)

Suggest An Answer

No suggestions avaliable!

Latest post from Go programming interview questions

Ask Question