Install all Go project dependencies in one command
To install all dependencies of a Golang project or golang projects recursively with the go get
command, change directory into the project and simply run:
go get ./...
This is specifically applicable to Revel apps, where there are many different packages contained in one working project (controllers
, models
, routes
, etc)
Written by Herman Schaaf
Related protips
3 Responses

I didn't have much luck with this. It was throwing bzr warnings on labix.org/v2/mgo. It does traverse the directories properly.
over 1 year ago
·

adding -t will also install test dependencies
over 1 year ago
·

i am not able to set gopath,
can u plz elaborate with example
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Dependencies
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#