GVM is version manager for golang. GVM provides an interface to install and manage multiple golang versions.
Install GVM
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
List available versions of golang
gvm listall
Install version v1.4
gvm install go1.4
Use v1.4 (as default)
gvm use go1.4 --default