Last active
December 18, 2018 02:22
-
-
Save liusheng/99e605537c35aec21bc9f73a0ac9b679 to your computer and use it in GitHub Desktop.
Config golangenv
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 | |
wget -c https://storage.googleapis.com/golang/go1.11.1.linux-amd64.tar.gz | |
sudo tar -C /usr/local/ -xvzf go1.11.1.linux-amd64.tar.gz | |
rm go1.11.1.linux-amd64.tar.gz | |
cat << EOF >> /etc/profile | |
export GOPATH=/home/zuul/ | |
export PATH=/usr/local/go/bin:$GOPATH/bin:$PATH: | |
export GOBIN=$GOPATH/bin | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment