Go Language Learning Series--development tools (II)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.