Last active
June 16, 2016 08:06
-
-
Save hacker65536/347da9d0320a71c1936e7b4f39fe1f58 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
OS=linux | |
ARCH=amd64 | |
VERSION=1.6.2 | |
cd /usr/local/src | |
wget https://storage.googleapis.com/golang/go$VERSION.$OS-$ARCH.tar.gz | |
tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz | |
cat <<'EOF' >> ~/.bashrc | |
export PATH=$PATH:/usr/local/go/bin | |
export GOROOT=$HOME/go | |
export PATH=$PATH:$GOROOT/bin | |
export GOPATH=$HOME/work | |
export PATH=$GOPATH:$PATH | |
EOF | |
. ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment