Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 852 Bytes

DEP.md

File metadata and controls

50 lines (36 loc) · 852 Bytes

DEP - Dependency Pakage Management Go

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

Installation

Google how to install dep

Find location to create new project - fucking GOPATH

cd $GOPATH/src/[host]/[username]/[repo]

# Example
cd $GOPATH/src/github.com/huynhsamha/tour-golang

Intilize new Project

dep init

Add dependencies

dep ensure -add [github.com]/[username]/[repo]

# Example
dep ensure -add github.com/pkg/errors
dep ensure -add golang.org/x/lint

Update dependencies

dep ensure -update [github.com]/[username]/[repo]

Ensure used packages

dep ensure

View used packages

dep status