Explorar o código

dep: add page (#1796)

Ravern Koh %!s(int64=7) %!d(string=hai) anos
pai
achega
aaba5c5b12
Modificáronse 1 ficheiros con 23 adicións e 0 borrados
  1. 23 0
      pages/common/dep.md

+ 23 - 0
pages/common/dep.md

@@ -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`