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 zero Value is not the value for which the IsZero method returns true; it is the Value for which the IsValid method returns false. See the docs for IsValid, which say "It returns false if v is the zero Value." See also the docs for Value, which say "The zero Value represents no value. Its IsValid method returns false, its Kind method returns Invalid, its String method returns "", and all other methods panic. "
What version of Go are you using (
go version
)?play.golang.org
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?play.golang.org
What did you do?
https://play.golang.org/p/Rnjm3-DT5Il
What did you expect to see?
What did you see instead?
According to https://golang.org/pkg/reflect/#Value.MethodByName "It returns the zero Value if no method was found."
The text was updated successfully, but these errors were encountered: