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
Is this really about go/doc (the package)? It doesn't look like it.
rsc
changed the title
go/doc: hides functions whose return type are from a package imported as "."
cmd/godoc: missing some functions when using dot imports
Dec 28, 2015
This is indeed an issue with go/doc: The function G() Y is associated with type Y (as a "constructor") but Y is not locally declared and thus its associated constructors are never emitted.
(dot imports are not worth the trouble they've caused overall)
Given
godoc will display
F
, but notG
.Repro: https://godoc.org/github.com/nodirt/tmp/godoc-bug should display function
X
.The text was updated successfully, but these errors were encountered: