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
cmd/doc: -all flag misses exported variables of unexported types #31067
Comments
Does |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
I think this is a reasonable issue regardless of the answer to @agnivade's question. |
Looked into it. The difference lies in the code paths between On an unrelated note, I noticed that 1.13 has a regression where the
But simply
Offtopic: f736de0 introduced the regression. (@robpike). This happens because now the package clause gets printed on the first write to |
Change https://golang.org/cl/206129 mentions this issue: |
Using
go1.12
Consider the following snippet:
Invoking
go doc -all
prints:Notice how
X
is missing? It should be shown. The problem is that the logic probably files the value under thex
type, but sincex
is not shown, it gets swallowed.The text was updated successfully, but these errors were encountered: