You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The String() method of reflect.Value prints a surprising type for method values returned
by MethodByName: instead of the type of the func, it returns the type of the receiver.
I think String() should use alternative logic if flagMethod is set.
http://play.golang.org/p/cXCMW1iCCT
Got:
main.C: <main.C Value>
func(): <main.C Value>
Want:
main.C: <main.C Value>
func(): <func() Value>