cmd/doc: package search inconsistent with methods or fields #40011
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Running
go doc rand
, as expected, gives the documentation forcrypto/rand
, as it finds that one beforemath/rand
:Running
go doc rand.rand
, however, gives the documentation formath/rand.Rand
, as it uses the lack of the symbol incrypto/rand
to know that that's not the right package. So far so good:However, running
go doc rand.rand.int
fails:It seems like it doesn't actually search past the first package if there's a method specified. Manually specifying the package, such as
go doc math/rand.rand.int
, works as expected.The text was updated successfully, but these errors were encountered: