Skip to content

Instantly share code, notes, and snippets.

@cihann
Created December 11, 2014 21:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cihann/d05036a33b7de267766d to your computer and use it in GitHub Desktop.
Save cihann/d05036a33b7de267766d to your computer and use it in GitHub Desktop.
ubuntu 14.04 golang setup
$ curl -O https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz
Unpack it to the /usr/local
$ tar -C /usr/local -xzf go1.4.linux-amd64.tar.gz
$ mkdir ~/golang
$ echo "export GOPATH=$HOME/go" >> ~/.zshrc
$ echo "export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin" >> ~/.zshrc
$ source ~/.zshrc && go version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment