mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 00:35:23 +02:00
dep: add page (#1796)
This commit is contained in:
parent
f38e8f463f
commit
aaba5c5b12
1 changed files with 23 additions and 0 deletions
23
pages/common/dep.md
Normal file
23
pages/common/dep.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# dep
|
||||
|
||||
> Tool for dependency management in Go projects.
|
||||
|
||||
- Initialize the current directory as the root of a Go project:
|
||||
|
||||
`dep init`
|
||||
|
||||
- Install any missing dependencies (Scans Gopkg.toml and your .go files):
|
||||
|
||||
`dep ensure`
|
||||
|
||||
- Report the status of the project's dependencies:
|
||||
|
||||
`dep status`
|
||||
|
||||
- Add a dependency to the project:
|
||||
|
||||
`dep ensure -add {{package_url}}`
|
||||
|
||||
- Update the locked versions of all dependencies:
|
||||
|
||||
`dep ensure -update`
|
Loading…
Add table
Reference in a new issue