Skip to content

cmd/go: behaviour of "go doc" in module mode is not documented #61032

@dolmen

Description

@dolmen

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 doc

Or 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

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.GoCommandcmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions