The previous section briefly describes one of the development tools for the Go language, liteide, which now uses eclipse to configure the Go language development environment, because Eclipse is also a popular development tool, so this chapter simply describes how eclipse configures the development environment for the go language.
First download eclipse from https://www.eclipse.org/downloads/, this find related article is easy to configure the success, I have been used locally, so I have installed the configuration, and now briefly explain how to configure the Go language development environment.
Double-tap open Eclipse, and then click Help, install new software on the menu bar, as shown in the following illustration:
Then click on the Add button in the pop-up window, in the mini-hit name input goclipse,location:http://goclipse.github.io/releases/, click OK
Then the plugin will be loaded (if it is not possible to change the address or the URL is blocked, it can only find a new address), select the required plug-in, click the Next button
Finally click Agree, this no way, with other people's things, do not agree to use, and then click Finish
Then wait for the download to install, the process may be a bit long and wait patiently.
After the installation is complete, you will be prompted to restart Eclipse, then click on Window->preferences to open the new pop-up window to see a Go menu, as shown in the following image:
Here is the configuration of some other, so you have to download other plugins
Download Gocode, the code completion prompt for go download address: https://sourceforge.net/projects/mingw/files/MinGW/Base/stats/timeline
Download msysgit, used to generate the Gocode Gocode.exe file, which needs to configure the environment variable
Goroot C:\Go//Installed directory
GOOS Windows//operating system
Goarch AMD64
Gopath D:\go\test//compiled Gocode.exe directory
PATH add C:\Go\bin//directory for installation execution
My other than Gopath, the other auto-generated, Msysgit installed after the completion of the Msysgit installation directory to find the Git-cmd.exe file, double-click Open the current file, run the following code
Go get-u github.com/nsf/gocode
Generate the Gocode.exe file in the bin directory under the Gopath directory and test it into the bin directory of the Go installation directory.
Then the Go menu to configure the various files corresponding to the EXE address, basic can be, you can create a first go language development program.