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
What does 'go version' print?
1.3
What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.
http://play.golang.org/p/wEN2KnN4CM
What happened?
Only type declared in current package gets field names
What should have happened instead?
Either make the field names work for imported packages, or the documentation should have
made this behavior clear. Currently, it just says: "when printing structs, the plus
flag (%+v) adds field names".
The text was updated successfully, but these errors were encountered:
both *net/url.URL and image.Rect have String method, so %+v
will just call it to convert it to string.
This behavior is well documented.
http://play.golang.org/p/kLP4FCTl8U
by stephen.searles@shipwire.com:
The text was updated successfully, but these errors were encountered: