step1
wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
step2
sudo tar -xvf go1.8.3.linux-amd64.tar.gz
sudo mv go /usr/local
step3
vi ~/.bashrc
export GOROOT=/usr/local/go
export GOPATH=/home/zhangxiao/goworkspace/mygo
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
source ~/.bashrc
step4
go version
#go version go1.8.3 linux/amd64