aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modcmd/init.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/init.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/init.go')
-rw-r--r--src/cmd/go/internal/modcmd/init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/go/internal/modcmd/init.go b/src/cmd/go/internal/modcmd/init.go
index c081bb547d..73cc282d81 100644
--- a/src/cmd/go/internal/modcmd/init.go
+++ b/src/cmd/go/internal/modcmd/init.go
@@ -27,6 +27,8 @@ Gopkg.lock), and the current directory (if in GOPATH).
If a configuration file for a vendoring tool is present, init will attempt to
import module requirements from it.
+
+See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'.
`,
Run: runInit,
}