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.
Build Golang environment Step, here only introduce liteide.
1. Download the Golang SDK installation package
Golang SDK packages are available in both zip and MSI versions
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
This is only used to install the base library and C + + compile libraries
3. Download 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!")
}
Windows Builds Golang development platform