-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Methods from anonymous types obscure godoc's output #2791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
This does appear to be redundant: the embedded field is an exported one, so it is already visible in the documentation. I believe we should only be showing these additional methods if they are reachable via _unexported_ fields, in the same way that we don't show methods for embeddings of exported types from other package.s Labels changed: added priority-go1, removed priority-triage. Status changed to Accepted. |
As a related detail, the embedded fields that come from anonymous types are lying about whether the receiver is a pointer or not: http://tip.goneat.org/pkg/archive/zip/#Writer.Write |
It may well be a bug in the code, one that we haven't noticed because there was no direct visiblity into the exact method sets. I noticed the same thing about your embedded *Value in the example you sent in. In many ways this is working as intended, but I agree that it is too cluttered to keep as is. |
This issue was closed by revision 3c6bebf. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: