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
reflect package comes to rescue:
reflect.TypeOf(obj).String()
Check this demo