-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.pkgsite
Milestone
Description
Currently godoc only exposes the documentation of exported types, vars, etc. However, there are a number of cases where it would be convenient to expose unexported types: when there is a variable or constant of that type and when a function or method takes or returns values of that type. If the unexported type has exported methods, this allows them to be shown in godoc. It is less important if it does not, but it would still allow godoc to render a link to that type, showing its docs, consts, and vars. The same effect, of course, can be generated by exporting the type, but leaving it unexported, if nothing else, is a signal that users should not create arbitrary values of this type, which has to be manually documented if you export the type. This is related, conceptually and likely implementation-wise, to issue #5860, issue #5397 and its duplicate (that contains more information) issue #7815
JensRantil, Znert, usernope, joeblubaugh, TimelyToga and 3 more
Metadata
Metadata
Assignees
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.pkgsite