aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modcmd/edit.go
diff options
context:
space:
mode:
authorJay Conrod <jayconrod@google.com>2021-01-08 11:35:35 -0500
committerJay Conrod <jayconrod@google.com>2021-01-08 20:21:06 +0000
commitcd6f3a54e4aa1c608f27275cdbb23f8b2a839faa (patch)
tree2e1ef169a3249cb354eb776c2619d175aaa8f085 /src/cmd/go/internal/modcmd/edit.go
parent6192b9875128c5f53a69b959d5a1abf0f10ae93f (diff)
downloadgo-cd6f3a54e4aa1c608f27275cdbb23f8b2a839faa.tar.gz
go-cd6f3a54e4aa1c608f27275cdbb23f8b2a839faa.zip
cmd/go: revise 'go help' documentation for modules
Module-related help pages now contain a brief summary and point to the reference documentation at golang.org/ref/mod for details. Help pages for commands like 'go get' still describe the basic usage and summarize flags but don't provide as much background detail. Fixes #41427 Fixes #43419 Change-Id: Icacd38e0f33c352c447cc5a496c99674493abde2 Reviewed-on: https://go-review.googlesource.com/c/go/+/282615 Trust: Jay Conrod <jayconrod@google.com> Run-TryBot: Jay Conrod <jayconrod@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/go/internal/modcmd/edit.go')
-rw-r--r--src/cmd/go/internal/modcmd/edit.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/go/internal/modcmd/edit.go b/src/cmd/go/internal/modcmd/edit.go
index 3a406b91fa..1df104eb1d 100644
--- a/src/cmd/go/internal/modcmd/edit.go
+++ b/src/cmd/go/internal/modcmd/edit.go
@@ -122,9 +122,7 @@ Note that this only describes the go.mod file itself, not other modules
referred to indirectly. For the full set of modules available to a build,
use 'go list -m -json all'.
-For example, a tool can obtain the go.mod as a data structure by
-parsing the output of 'go mod edit -json' and can then make changes
-by invoking 'go mod edit' with -require, -exclude, and so on.
+See https://golang.org/ref/mod#go-mod-edit for more about 'go mod edit'.
`,
}