Server OS: Ubuntu 17.04 x64
Download latest Go lib: https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-amd64.tar.gz
Then,
tar -C /usr/local -xzf go1.9.2.linux-amd64.tar.gz
Then put those code into ~/.profile
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin export GOROOT=/usr/local/go export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin
then ” source ~/.profile ”
Last, try type ” go version” in the Terminal you should get this