Skip to content

Instantly share code, notes, and snippets.

@easmith
Last active December 20, 2020 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save easmith/e88ab51d8a228e8945a6b636f4024d45 to your computer and use it in GitHub Desktop.
Save easmith/e88ab51d8a228e8945a6b636f4024d45 to your computer and use it in GitHub Desktop.
#!/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