This is a creation in Article, where the information may have evolved or changed.
First download Golang package, download address: Http://pan.baidu.com/s/1hq1mrDM
Go to the Go folder and enter the corresponding version number, If your system is 32-bit is the go1.4.2.linux-386.tar.gz,64 bit is go1.4.2.linux-amd64.tar.gz, downloaded well after the unzip get go folder, we use the command to move to the system directory: sudo mv go/ usr/local/Enter the administrator password, nothing is prompted to succeed, then modify the profile file, the command is sudo gedit/etc/profile, and then add the following code at the end:
export GOROOT=/usr/local/goexport GOARCH=amd64export GOOS=linuxexport GOPATH=/home/gopathexport GOBIN=$GOROOT/binexport PATH=$GOPATH/bin:$GOROOT/bin:$PATH
Then log off and re-login, log out and enter go in the terminal if there is a lot of English is successful.
By:rekols on 2015-04-26 12:20:21