- curl -O https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz
- tar -C /usr/local -zxvf go1.7.3.linux-amd64.tar.gz
- sudo tar -C /usr/local -zxvf go1.7.3.linux-amd64.tar.gz
- mkdir -p ~/go/src
- echo "export GOPATH=$HOME/go" >> ~/.bashrc
- echo "export PATH=GOPATH/bin:/usr/local/go/bin" >> ~/.bashrc
- source ~/.bashrc
- go version
有疑问加站长微信联系(非本文作者)