mirror of
https://github.com/golang/go
synced 2024-11-13 15:20:22 -07:00
cmd/go: fix documentation on how to create new go.mod file
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>
This commit is contained in:
parent
89b141c06e
commit
43afb1a220
@ -1952,7 +1952,7 @@
|
|||||||
// The go.mod file format is described in detail at
|
// The go.mod file format is described in detail at
|
||||||
// https://golang.org/ref/mod#go-mod-file.
|
// 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.
|
// 'go help mod init' or https://golang.org/ref/mod#go-mod-init.
|
||||||
//
|
//
|
||||||
// To add missing module requirements or remove unneeded requirements,
|
// To add missing module requirements or remove unneeded requirements,
|
||||||
|
@ -46,7 +46,7 @@ marking the root of the main (current) module.
|
|||||||
The go.mod file format is described in detail at
|
The go.mod file format is described in detail at
|
||||||
https://golang.org/ref/mod#go-mod-file.
|
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.
|
'go help mod init' or https://golang.org/ref/mod#go-mod-init.
|
||||||
|
|
||||||
To add missing module requirements or remove unneeded requirements,
|
To add missing module requirements or remove unneeded requirements,
|
||||||
|
Loading…
Reference in New Issue
Block a user