Gogland is the JetBrains company launched the Go Language integrated development environment. Gogland also based on the IntelliJ platform development, support JetBrains plug-in system. The official version is not yet released. Official: https://www.jetbrains.com/go/. About use, is about to begin.
First, install the Golang
1) First go to https://golang.org/dl/to select the appropriate installation package for your system (inside the wall: http://golangtc.com/download).
2) Download complete installation to the specified directory. I am here (D:\Go).
3) Configuring Glang environment variables
Go to My Computer , advanced Settings , environment variables see if thegoroot variable exists, and if the Path variable is also set Goroot. If not, add a goroot variable and the path will enter the root directory of Go after you have just installed it, as mine is: D:\Go\. Then edit the Path variable and add ";%goroot%bin" to the last face.
the go command relies on an environment variable:Gopath, this is not the Go installation directory, but your work (project) directory (your code will be in that directory). Gopath can have more than one, Windows is separated by semicolons (;), the Linux system is a colon (:), when there are multiple Gopath , the default is to put the contents of go get in the first directory. Here we create a new gopath variable, taking my example: D:\Go\MyGolang, and creating the relevant directory as follows:
4) Restart the operating system and verify by command
Tip: Golang related installation and environment configuration has ended;
Second, installation Gogland
1) Download and install (process slightly)
2) Configuration related
Open "File-settings", pop up the following configuration interface
Tip: You need to configure the Goroot and Gopath paths here. Project Gopath, where you can set up your own projects working directory.
3) Compile and run
If you need to run a single *.go directly right-click on the "Run-run", if there are more than one directory to do some configuration, the steps are as follows: Click Run–edit configurations, then go to run/debug configurations configuration panel.