Skip to content

Instantly share code, notes, and snippets.

@alanwilhelm
Last active June 8, 2017 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanwilhelm/b46cd7149ad858ba056d2f83d167da88 to your computer and use it in GitHub Desktop.
Save alanwilhelm/b46cd7149ad858ba056d2f83d167da88 to your computer and use it in GitHub Desktop.
Golang 1.8 on ubuntu 16.04
#!/bin/bash
sudo apt-get remove golang --purge
wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.8.linux-amd64.tar.gz
mkdir -p ~/go; echo "export GOPATH=$HOME/go" >> ~/.bashrc
echo "export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment