This is a creation in Article, where the information may have evolved or changed.
1 installation Version go1.5
2 Download SDK: Download Address: Http://golangtc.com/download
3 Follow the prompts to install, placed in the D:/go directory
4 Download Install INTELLJ idea, address: http://www.jetbrains.com/idea/
5 Follow the prompts to install INTELLJ idea
6 Configuring the Go plugin for idea
One is directly in the Settings->plugins->intsall JetBrains plugins-a search Golang, but I did not search, the internet said to compile Go-lang-plugin source to get the jar, But my compilation always comes up with problems, giving up
I am like this: I vcs->check from the Internet from version control, Docker GitHub source code address->clone Source to the IDE, there will be a hint: found the. Go plugin, install, reboot after installation is complete Idea, and configure the Go SDK, just want to go to the installation directory.
7 Configuration of the system environment variables:
$GOROOT point to the root directory after the Golang installation, the Windows platform, such as D:/go, is automatically written to the system environment variables during installation by the Setup program.
Processor Architecture $GOARCH Target platform (compiled target platform) (386, AMD64, arm)
operating system $GOOS target platform (compiled target platform) (Darwin, FreeBSD, Linux, Windows)
$GOBIN point to the Bin directory under the root directory after installation, that is, the default is C:/go/bin under the $goroot/bin,windows platform, which is automatically added to the path variable by the Setup program during the installation process