This is a creation in Article, where the information may have evolved or changed.
There are three ways to download and install Golang, and I'll show you how to install it with the source code.
First, to Golang China download the appropriate version of the TAR package
Download Address: Http://www.golangtc.com/download
Second, unzip to the/usr/local directory
Command: Tar-c/usr/local-xzf go1.7.3.linux-amd64.tar.gz (take version 1.73 as an example)
III. Configuring environment Variables in/etc/profile
Export goroot= $HOME/go
Export path= $PATH: $GOROOT/bin
E xport gopath= Project where the path//go command depends on the environment variable
Iv. determine if GO is installed successfully
In the command line console, enter Go version, if it comes out the release number of go, indicating that the installation was successful
Next, focus on idea's support for Go
First, install the Go plugin in idea
1, open idea, click "File" in the upper right corner, select "Settings ...", enter the page and click "Plugins", as
2. Click the button "Browse repositories ..." in the pop-up page to enter go
3, click Go, and select the right install plugin plug-in installation
4. After the installation is complete, you can add SDK and goapplication
5, click "File", select "Project Structure ...", click "SDKs", click on the + sign, select "Go SDK", select Install Go src file
6. Click "Edit configurations ..." In the top right corner .
5. Click on the top left corner +, then select "Go Application" to complete File,output directory and working directory
Click Apply and OK on the line
PS: If there is improper place, also please the Warrior to correct a lot