mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:22:08 +02:00
parent
8a9a0e8222
commit
19d232cbf4
1 changed files with 16 additions and 0 deletions
16
pages/common/go-mod.md
Normal file
16
pages/common/go-mod.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# go mod
|
||||||
|
|
||||||
|
> Tool for module maintenance.
|
||||||
|
> More information: <https://golang.org/cmd/go/>.
|
||||||
|
|
||||||
|
- Download modules to local cache:
|
||||||
|
|
||||||
|
`go mod download`
|
||||||
|
|
||||||
|
- Add missing and remove unused modules:
|
||||||
|
|
||||||
|
`go mod tidy`
|
||||||
|
|
||||||
|
- Copy all dependencies into vendor directory:
|
||||||
|
|
||||||
|
`go mod vendor`
|
Loading…
Add table
Reference in a new issue