Go Language Common library: Click to open the link
write the Go project using the Goglang IDE 1. New Go Item File===>new===>project ...
The last string in the first line of pop-up box is changed to the name of the item you want to create, click Create
An empty project folder is created 2. Create a project directory folder
In order to follow the Google Go Development specification and facilitate our subsequent work, we set up three folders under each project folder according to go requirements: (right key project name, New===>directory)
bin/ generated executable file pkg/ compiled intermediate file src/ program code file
3. Edit Project Example under SRC : Create a main folder in SRC to place the executable file. In creating a main.go. The contents are as follows:
Package main
Import "FMT"
func Main () {
fmt. Println ("Hello world!")
}
4. Configure the operating environment File===>setting Open Settings Environment PM set goroot for you to install the Go software path
Second, set up the working directory of the Gopath,global Gopath to place the Go Project; project path chooses the directory where the current project is placed;
4. Configure compilation and operation Environment right key project name = = "Run, will pop up the following pop-up box, no can be found in the upper right corner of the edit Configuration."
5. Compile and run