Golang.txt Compliance Equivalent

Coming from the world of python / django, it would be great to have something like the equivalent of the .txt requirement for go / revel. How can i do this? I know that I can write requirements.txt file and then do something like

cat reqiurements.txt | xargs go get 

But what if my requirements ALSO have requirements? The above team will try to "go" and then they will not be able to build, since I do not have these requirements.

Is there something I am missing?

+8
shell go revel
source share
2 answers

The go get command does exactly what you need: it finds all the dependencies and downloads and installs the missing ones. Focus on " everything ": go get really crosses your dependency graph.

See the documentation:

http://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies

The Go documentation is really clean, short, and well written. I would always recommend that you first read the documentation before making assumptions based on experience with other tools or tool chains.

+13
source share

I just discovered that the guys from the cubernetes really created a review page for themselves here .

Summary: the current stable Glide , and a cool new toy called dep

+2
source share

All Articles