go-mod: apply suggestions

Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
gonejack
2020-05-11 12:08:42 +08:00
committed by Starbeamrainbowlabs
parent 6888a29a68
commit 21a74424c7

View File

@@ -1,7 +1,11 @@
# go mod
> Tool for module maintenance.
> More information: <https://golang.org/cmd/go/>.
> Module maintenance.
> More information: <https://golang.org/cmd/go/#hdr-Module_maintenance>.
- Initialize new module in current directory:
`go mod init {{moduleName}}`
- Download modules to local cache:
@@ -11,6 +15,10 @@
`go mod tidy`
- Copy all dependencies into vendor directory:
- Verify dependencies have expected content:
`go mod verify`
- Copy all dependencies sources into vendor directory:
`go mod vendor`