1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-30 19:55:40 +02:00

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
No known key found for this signature in database
GPG key ID: 1BE5172E637709C2

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`