Please note, that this is a guide that assumes you're on OSX.
For details see https://github.com/moovweb/gvm
$ bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
First install basic Golang (before C compilers were removed).
$ gvm install go1.4 -B
$ gvm use go1.4
$ export GOROOT_BOOTSTRAP=$GOROOT
Install your target Go version. To see all available versions use gvm listall
.
$ gvm install go1.6.3
For convenience, you can default it system wide
$ gvm use go1.6.3 --default