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:
parent
6888a29a68
commit
21a74424c7
1 changed files with 11 additions and 3 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Reference in a new issue