mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-31 00:17:56 +01:00
24 lines
432 B
Markdown
24 lines
432 B
Markdown
|
# 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`
|