Last active
December 20, 2020 20:29
-
-
Save easmith/e88ab51d8a228e8945a6b636f4024d45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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