Go Libraries and goinstall
Go features a package-management-style library management supporting the common version control systems and repository-providers. This makes installing project dependencies aka. packages aka. libraries really easy.
For this introduction the package rest.go (which I forked) will be used. To install the rest.go package to your go installation simply run:
go install github.com/Kissaki/rest.go
This will make go install*
use Git to clone the rest.go repository to your go installations source folder and then compile it. Works similarly with launchpad and googlecode. To actually find packages to try out, the Go website provides a list of projects and a list of recently and often having been installed packages.
After having installed a package and wanting to update it, the easiest way to do so is to pass the -u
parameter to go install:
go install -u github.com/Kissaki/rest.go