Questions about the Go "reflect" package that implements run-time reflection, allowing a program to manipulate objects with arbitrary types.
How do I find the type of an object in Go? In Python, I just use typeof to fetch the …
go go-reflectBasically, the only way (that I know of) to iterate through the values of the fields of a struct is …
go go-reflectI want to check if two structs, slices and maps are equal. But I'm running into problems with the following …
go go-reflectI'm curious why Go does't implicitly convert []T to []interface{} when it will implicitly convert T to interface{}. Is there …
go go-reflect go-interfacehaving a rough time working with struct fields using reflect package. in particular, have not figured out how to set …
go reflection go-reflectGiven the scenario where you have a function which accepts t interface{}. If it is determined that the t is …
go reflection slice go-reflectGiven a function, is it possible to get its name? Say: func foo() { } func GetFunctionName(i interface{}) string { // ... } func main() { // …
go reflection go-reflectCan anyone tell me how to create a new instance of Type from a string? Reflect? There are examples but …
go types instance go-reflectIn Go, is there any way to compare two non-nil function pointers to test for equality? My standard of equality …
go function-pointers go-reflect