This is a created article in which the information may have evolved or changed.
One, download the Go language installation file, I directly download the Go Language installation package (64-bit), not the source code:
Download Address:
64-bit: https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
32-bit: https://storage.googleapis.com/golang/go1.6.linux-386.tar.gz
If you cannot download it, use this tool:
Https://github.com/freenethub/freenethub
Second, unzip to the location where you want to place the go language.
I put it in: "/usr/local/go."
Third, configure the environment variables of Ubuntu, I want the global user to be able to use, so Modified "/etc/profile", at the end of this file to add the following content:
Export Goroot=/usr/local/go
Export Gobin=/usr/local/go/bin
Export path= $PATH: $GOBIN
Modify, save, restart Ubuntu, and then start the shell, respectively, as root and normal user status, enter "Go env" or "Go version" in the shell, if everything is normal, should display the go language environment variables and go language version information!!