// download
wget https://dl.google.com/go/go1.12.1.linux-amd64.tar.gz
tar zxvf go1.12.1.linux-amd64.tar.gz
mv go /usr/local
// GOROOT
export GOROOT=/usr/local/go
// GOPATH
export GOPATH=$HOME/Projects/Proj1
// PATH
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
go version
更新 2019-03-16