Skip to content

Instantly share code, notes, and snippets.

@ef2k
Last active August 17, 2016 16:13
Show Gist options
  • Save ef2k/df13d44922743df4ae071f73ae780856 to your computer and use it in GitHub Desktop.
Save ef2k/df13d44922743df4ae071f73ae780856 to your computer and use it in GitHub Desktop.
Getting Golang Ready

Getting Golang Ready

Please note, that this is a guide that assumes you're on OSX.

Installing pre-requisites

GVM

For details see https://github.com/moovweb/gvm

$ bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

Installing Golang via GVM

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment