1
0
mirror of https://github.com/golang/go synced 2024-11-07 13:46:19 -07:00

cmd/go: document in 'go help mod' that people should use 'go get'

We're starting to see tutorials that assume
'go mod' is the only module-related command.

Fixes #26597.

Change-Id: I44701f29f89fc67086f96307afbdb4659bb63873
Reviewed-on: https://go-review.googlesource.com/125935
Reviewed-by: Bryan C. Mills <bcmills@google.com>
This commit is contained in:
Russ Cox 2018-07-24 20:02:26 -04:00
parent a74cc47244
commit 9cde8048ad
2 changed files with 10 additions and 0 deletions

View File

@ -859,6 +859,11 @@
// Mod performs module maintenance operations as specified by the
// following flags, which may be combined.
//
// Note that support for modules is built into all the go commands,
// not just 'go mod'. For example, day-to-day adding, removing, upgrading,
// and downgrading of dependencies should be done using 'go get'.
// See 'go help modules' for an overview of module functionality.
//
// The -v flag enables additional output about operations performed.
//
// The first group of operations provide low-level editing operations

View File

@ -28,6 +28,11 @@ var CmdMod = &base.Command{
Mod performs module maintenance operations as specified by the
following flags, which may be combined.
Note that support for modules is built into all the go commands,
not just 'go mod'. For example, day-to-day adding, removing, upgrading,
and downgrading of dependencies should be done using 'go get'.
See 'go help modules' for an overview of module functionality.
The -v flag enables additional output about operations performed.
The first group of operations provide low-level editing operations