This package used to manage dependency packages using in project (such as NPM
or yarn
in Node.JS), with:
- Gopkg.lock
- Gopkg.toml
- vendor => node_modules in Node.JS
Google how to install dep
cd $GOPATH/src/[host]/[username]/[repo]
# Example
cd $GOPATH/src/github.com/huynhsamha/tour-golang
dep init
dep ensure -add [github.com]/[username]/[repo]
# Example
dep ensure -add github.com/pkg/errors
dep ensure -add golang.org/x/lint
dep ensure -update [github.com]/[username]/[repo]
dep ensure
dep status