This is a created article in which the information may have evolved or changed.
Cut the crap and go straight to the subject.
System for Ubuntu12.10
1 Downloads Go's source package is now out of the go1.1beta2, but we're still using the go1.0.3 version.
Manual download:http://code.google.com/p/go/downloads/list
Command download:wget https://go.google.com/files/go.1.0.3.linux-amd64.tar.gz
2 The downloaded file is best placed under home because there is a Chinese path in the "Download"
3 Enter the command to extract the source package into the usr/local/ directory
sudo tar -zxvf go1.0.3.linux-amd64.tar.gz -C /usr/local/
4 wait for the decompression to complete after you open the Ubuntu configuration file to add the environment variables in
sudo gedit ~/.bashrc
After entering the password, open the bashrc file as shown in the following illustration
Path is the gopath of Go, and many files need to be placed in this folder after the go work path.
Click Close to save and then execute the following command to make the changes take effect.
source ~/.bashrc
5 in the terminal input Go Env View the installation situation appears the following information displays the installation success!