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
Best way is using reflection concept in Google. reflect.TypeOf gives type along with the package name reflect.TypeOf().Kind() gives underlining type
reflect.TypeOf
reflect.TypeOf().Kind()