Win7 Configuring the Go locale + Eclipse configuration Go Development

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

It has been evolving, this article was written in 2013-03-24.

The configuration may change with the official, this article is for reference only.


1. Download the package to install go

Download the corresponding operating System package to Https://code.google.com/p/go/downloads/list (Go1.0.3.windows-amd64.zip is selected by the author when writing this article)

PS: There are two ways to install, using MSI installation, which automatically helps to configure environment variables. You can manually set the environment variables yourself after using zip decompression.

2. Setting Environment variables

Configure the GO environment variable in My computer:

2.1 Create a new environment variable goroot, with the value of the root directory of the go you unzipped (author's C:\go)

2.2 Add the bin of go to the PATH environment variable, the author is%goroot%\bin;

2.3 Open the CMD command line and enter go. If the configuration is correct, there will be a help prompt.

3. Set up eclipse install go plugin

3.1 First to download eclipse (the version used by the author is Eclipse Jee 4.2)

3.2 Installing the Eclipse plugin for Go

Add the Go Plugin's installation address at Eclipse's help-"Install new software-" add-: http://goclipse.googlecode.com/svn/trunk/ goclipse-update-site/-"Then it is easy to understand the installation, not detailed.

3.3 Supplement

In this brother's article http://blog.csdn.net/hengyunabc/article/details/7371446, wrote that also need to configure Gocode (as input code Auto-completion function of a plug-in), the author does not use, Because the simple code completion function has been brought in when writing the Hello World Test program, the article also writes about the need to configure MinGW, and the author does not have a download configuration because Hello world works. Possible follow-up development needs, which are supplemented later. Lest the learning curve should be improved at a sudden.

Interested students, can directly refer to the official document for understanding and configuration http://golang.org. The author is using the decompression installation method from the Windows version of Go, only the method described above. If there are deficiencies please guide.

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.