How do I find the type of an object in Go? In Python, I just use typeof to fetch the type of object. Similarly in Go, is there a way to implement the same ?
typeof
To be short, please use fmt.Printf("%T", var1) or its other variants in the fmt package.
fmt.Printf("%T", var1)