wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz
extract the package
sudo tar -zxvf go1.7.5.linux-amd64.tar.gz -C /usr/local/
Added by Go Path
echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> ~/.bashrc
i am getting error when typing
go version
-bash: /usr/bin/go: No such file or directory
I just make a symlink from /usr/bin/go to the particular go binary file I want, that way the OS can always find it.