Skip to content
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: incorrect suppression of functions returning unexported types #16568

Closed
dsnet opened this issue Aug 2, 2016 · 0 comments
Closed

cmd/doc: incorrect suppression of functions returning unexported types #16568

dsnet opened this issue Aug 2, 2016 · 0 comments

Comments

@dsnet
Copy link
Member

dsnet commented Aug 2, 2016

Using go1.7rc2

a33e9cf caused a regression from Go1.6.

Consider the following package snippet:

type private int
func Public() private { return 0 }

Currently I see:

$ go doc

I expect to see:

$ go doc
func Public() private

The issue is that the logic in the above commit classified Public as a constructor and hid it under private, thus displaying nothing. Instead, it should always display functions like this.

@dsnet dsnet added this to the Go1.7Maybe milestone Aug 2, 2016
@dsnet dsnet self-assigned this Aug 2, 2016
@golang golang locked and limited conversation to collaborators Aug 2, 2017
@rsc rsc unassigned dsnet Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants