Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 461 Bytes

go-dependencies.md

File metadata and controls

20 lines (14 loc) · 461 Bytes

Managing go dependencies

Go dependencies are managed using the dep tool.

USAGE

Add a new package:

  # Add import reference of acme.com/widget.
  $ vi pkg/foo.go

  # Add dependency using dep ensure command
  $ dep ensure
  
  Locking to a specific commit of a repo:
  Add a "constraint" to Gopkg.toml specifying the version/revision needed

More help here