- 
                Notifications
    
You must be signed in to change notification settings  - Fork 18.4k
 
Open
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.GoCommandcmd/gocmd/goNeedsInvestigationSomeone 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.
Milestone
Description
The documentation for go doc still refers to GOPATH mode. No mention of Go module mode (which is now the default behavior).
What version of Go are you using (go version)?
$ go version master
Does this issue reproduce with the latest release?
Yes (1.21rc2).
See https://pkg.go.dev/cmd/go@master#hdr-Show_documentation_for_package_or_symbol
What operating system and processor architecture are you using (go env)?
go env Output
$ go env 1.21rc2
What did you do?
$ go help docOr online: https://pkg.go.dev/cmd/go@master#hdr-Show_documentation_for_package_or_symbol
What did you expect to see?
Documentation of the "go doc" behavior in Go module mode, with no mention of GOPATH.
What did you see instead?
When run with one argument, the argument is treated as a Go-syntax-like
representation of the item to be documented. What the argument selects depends
on what is installed in GOROOT and GOPATH [...]
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.GoCommandcmd/gocmd/goNeedsInvestigationSomeone 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.