Packaging and dependencies
One of the best parts of the node.js ecosystem is npm.
What is npm, go get
Fetching dependency
Dev dependencies (equivalant in go?)
Versioning, shrinkwrap
Tool - godep
We will use godep in our example as it is well known in the community and is used by Heroku as their deployment method for deploying Go apps.
Using godep
First, you will need to fetch the godep package, from the command line:
go get -u github.com/tools/godep
The will fetch and install the godep tool. Next, change back to the project you wish to version, and run the following command:
godep save ./...
Once this has completed, if you look at your directory you should now see two new folders, one is called Godep, this contains the versioning manifest, you should also have a "vendors" folder, looking inside that folder you will see copies of all the packages your project references.
Save all code.
Fetching updated dependencies
Modifying dependencies during development (npm link equivalent)
Async Programming