Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
VERSION=1.11.2
OS=linux
ARCH=amd64
wget https://dl.google.com/go/go$VERSION.$OS-$ARCH.tar.gz
sudo tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
rm go$VERSION.$OS-$ARCH.tar.gz
echo "export GOPATH=$HOME/go" >> ~/.profile
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile
source ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment