mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-31 15:55:31 +02:00
go-mod: apply suggestions
Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
parent
6888a29a68
commit
21a74424c7
1 changed files with 11 additions and 3 deletions
|
@ -1,7 +1,11 @@
|
||||||
# go mod
|
# go mod
|
||||||
|
|
||||||
> Tool for module maintenance.
|
> Module maintenance.
|
||||||
> More information: <https://golang.org/cmd/go/>.
|
> 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:
|
- Download modules to local cache:
|
||||||
|
|
||||||
|
@ -11,6 +15,10 @@
|
||||||
|
|
||||||
`go mod tidy`
|
`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`
|
`go mod vendor`
|
||||||
|
|
Loading…
Add table
Reference in a new issue