Skip to content

Instantly share code, notes, and snippets.

@liusheng
Last active December 18, 2018 02:22
Show Gist options
  • Save liusheng/99e605537c35aec21bc9f73a0ac9b679 to your computer and use it in GitHub Desktop.
Save liusheng/99e605537c35aec21bc9f73a0ac9b679 to your computer and use it in GitHub Desktop.
Config golangenv
#!/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