Skip to content

Instantly share code, notes, and snippets.

@thaild
Created December 13, 2018 04:54
Show Gist options
  • Save thaild/3011bf17c4bf6d36e95f454b312a8d1b to your computer and use it in GitHub Desktop.
Save thaild/3011bf17c4bf6d36e95f454b312a8d1b to your computer and use it in GitHub Desktop.
sudo apt-get purge golang*
sudo rm -rf /usr/lib/go-1.6/ /usr/lib/go-1.6/src/ /usr/lib/go-1.6/src/runtime/ /usr/lib/go-1.6/src/runtime/race
curl -O https://storage.googleapis.com/golang/go1.11.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.11.1.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
source ~/.bashrc
@thaild
Copy link
Author

thaild commented Dec 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment