1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:30:03 -07:00

cmd/go: add /v2 to go.mod require example

I added /v2 to go.mod require example

Fixes #28374

Change-Id: I74cca374838d106eb79acb9189a02fe9443962c0
Reviewed-on: https://go-review.googlesource.com/c/144917
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
diplozoon 2018-10-26 05:03:15 +00:00 committed by Bryan C. Mills
parent a3b01440fe
commit 0b071e4019
2 changed files with 2 additions and 2 deletions

View File

@ -1605,7 +1605,7 @@
//
// module my/thing
// require other/thing v1.0.2
// require new/thing v2.3.4
// require new/thing/v2 v2.3.4
// exclude old/thing v1.2.3
// replace bad/thing v1.4.5 => good/thing v1.4.5
//

View File

@ -394,7 +394,7 @@ verb followed by arguments. For example:
module my/thing
require other/thing v1.0.2
require new/thing v2.3.4
require new/thing/v2 v2.3.4
exclude old/thing v1.2.3
replace bad/thing v1.4.5 => good/thing v1.4.5