]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix documentation on how to create new go.mod file
authorShulhan <m.shulhan@gmail.com>
Sun, 28 Mar 2021 16:04:33 +0000 (23:04 +0700)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 30 Mar 2021 17:07:46 +0000 (17:07 +0000)
The correct command to create new go.mod file should be 'go mod init',
not 'go help init'.

Change-Id: I1150621987d989997f8b75e6a13fe96423a11cf3
Reviewed-on: https://go-review.googlesource.com/c/go/+/305289
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Trust: Jay Conrod <jayconrod@google.com>
Trust: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

src/cmd/go/alldocs.go
src/cmd/go/internal/modload/help.go

index b15b77fac8403a788e09e3701c93cd754ce29923..3fece365e8f4e9fec1d5a2bd625a955de9575b44 100644 (file)
 // The go.mod file format is described in detail at
 // https://golang.org/ref/mod#go-mod-file.
 //
-// To create a new go.mod file, use 'go help init'. For details see
+// To create a new go.mod file, use 'go mod init'. For details see
 // 'go help mod init' or https://golang.org/ref/mod#go-mod-init.
 //
 // To add missing module requirements or remove unneeded requirements,
index fd39ddd94ec62d6f21533a7ea7dff02c8eeb2ecb..886ad62bd90cb6a64113732336d9affe117a98ef 100644 (file)
@@ -46,7 +46,7 @@ marking the root of the main (current) module.
 The go.mod file format is described in detail at
 https://golang.org/ref/mod#go-mod-file.
 
-To create a new go.mod file, use 'go help init'. For details see
+To create a new go.mod file, use 'go mod init'. For details see
 'go help mod init' or https://golang.org/ref/mod#go-mod-init.
 
 To add missing module requirements or remove unneeded requirements,