Skip to content

Instantly share code, notes, and snippets.

@tobegit3hub
Last active March 26, 2016 15:55
Show Gist options
  • Save tobegit3hub/8a5cc01c6dbb09923d78 to your computer and use it in GitHub Desktop.
Save tobegit3hub/8a5cc01c6dbb09923d78 to your computer and use it in GitHub Desktop.
# Refer to https://golang.org/dl/
wget https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz

tar xzvf ./go1.6.linux-amd64.tar.gz

mv go /usr/local/
add-apt-repository -y ppa:evarlast/golang1.5
apt-get update -y
apt-get install -y golang
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:"/usr/local/go/bin/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment