This is a creation in Article, where the information may have evolved or changed.
Golang is a Google development of an open-source language, temporarily more convenient IDE has INTEILLJ idea, Liteide, Eclipse (Golipse), and so on, using a more convenient ide:liteide and Inteillj idea, But Inteillj idea plugin update is too slow, and there are some problems (Go SDK version support is 1.2, the current latest SDK version is 1.4Beta). Liteide is a gubit open source project that has now been updated to version 24.2.
Build Golang environment Step, here only introduce liteide.
1. Download Golang SDK installation package (latest 1.4Beta, support Android nativeclient so library development)
The Golang SDK package is available in both zip and MSI versions, with download addresses in: Http://golangtc.com/download
Then install it, and when the installation is complete, set goroot and Gopath in the environment variables.
Goroot is set to the Golang SDK installation path, Gopath is the project development path, can be arbitrarily set, the recommended path is: Golang SDK installation path in the SRC directory.
When the above steps are complete, test the Golang environment for success. Open the command-line console, enter go, and if successful, it will output some instructions for go.
2, installation MinGW
Download the MinGW SDK for Golang to do the C + + call library, the recommended installation path does not change
3, download Liteide (currently the latest version is 24.2)
Address: Https://github.com/visualfc/liteide
After downloading, directly unzip the use.
When you open liteide, you can create a project, but only if you need to set up your build environment.
Steps: (1), find the menu--view--Edit environment variable---set the Goroot path and the MinGW path
When set up, you can create a new project to test to see if it works
In the new project, create a new go file and enter the following code:
Package Main
import"FMT"
func Main () {
Fmt. Println ("Hello golang!")
}