Go语言环境搭建 - novelinux/docker GitHub Wiki
https://golang.org/doc/install
setup env
$ tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz
$ export PATH=$PATH:/usr/local/go/bin
For example, if you installed Go to your home directory you should add commands like the following to $HOME/.bashrc:
export GOROOT=$HOME/go1.X
export PATH=$PATH:$GOROOT/bin