This is a creation in Article, where the information may have evolved or changed.
1, download IntelliJ idea flagship, I'm using 14.1.3 version:
http://www.jetbrains.com/idea/download/
2. Download Golang official SDK and Go-lang-idea-plugin plugin source code
http://golang.org/dl/(To turn = = Wall)
Https://github.com/go-lang-plugin-org/go-lang-idea-plugin
3, unzip the downloaded Go-lang-idea-plugin compressed package , Idea click on file--open the project. After opening there are many compile errors, regardless, the next step to configure.
4, click File--Project Structure to open the Project Structure Configuration window.
, add the path to the JDK and IntelliJ Platform Plugin SDK. The JDK is best to use the JDK1.8 version, or the subsequent compilation error may occur, IntelliJ Platform Plugin SDK path to IntelliJ installation path root directory
5. Set up the project SDK
Click File, Project Structure->project, set the project SDK to the idea SDK that you just set up,
6, in Debug Configuration, select All in Intellij-go
7, compile build jar
Click Build---Prepare plugin module ' intellij-go ' for deployment, the prompt will pop up after the compilation is successful.
8, click on Install plugin from disk, Plugins Settings, file, select the generated jar package, click OK, and you will be prompted to restart idea.
9, after restart, unzip the downloaded Golang SDK zip file, then click File- --Project Structure, add the Go SDK path, the path is the extracted files path. To this IntelliJ idea configuration Golang environment is complete.
Finally write an example of Hello Word under test: