Yesterday Once more---Encounter the go language again

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

I wrote a furious message to the writers of the go language a few years ago, hoping that they would be braver to create a new language.

Since then, less attention to it, did not think, and now meet the growth of it.

It's easy to install the Go Language Development kit, so you can install the development package on Linux, Windows, MacOS, and so on, as long as the steps on the official website are installed.

Http://golang.org/doc/install

After installation, you can use the go language to develop.

--------------------------------------------------------------------------------------------------------------- ----------------------------------------

However, there should be a lot of people with windows, like to configure the visual programming environment on Windows;

Below is a collection of articles from the following blog friends, how to configure go on Windows + Eclipse.

http://blog.csdn.net/hengyunabc/article/details/7371446

This article address: http://blog.csdn.net/hengyunabc/article/details/7371446

2012-03-31: The new version of Goclipse has been greatly improved, and some of the content in this article is outdated.

1. Download the installation package for go under Windows:

Https://code.google.com/p/go/downloads/list


You can also download the source code and compile it with MinGW . Configure the MinGW Environment First, then run the All.bat.

mingw:http://www.mingw.org/


2. Download Gocode, for go full tip:

Gocode's GitHub Address:

Https://github.com/nsf/gocode

To install Git, under Windows, you typically use Msysgit.

https://code.google.com/p/msysgit/


Install again under cmd:

go get-u github.com/nsf/gocode


You can also download the code and compile it directly with go build, which generates Gocode.exe.


3. Install the plugin in eclipse:

Http://code.google.com/p/goclipse/wiki/InstallationInstructions


4. Configure the plugin:

(1). Configure the Go Compiler



(2). Configure Gocode (optional), here I use the Eclipse plugin comes with the gocode.



(3). Configure GDB to make a trial (optional)

If MinGW is installed, you can find gdb under the installation directory.



5. Whether the test was successful

Create a new Go project and build a hello.go. Such as:



GDB debugs as follows (to debug with the input command in the console):



6. Other

March 31, 2012:

Currently this eclipse plugin can only be run with the code in the CMD package. (Programmingisstory note, not required at this time)

It seems that the popular is sublime Text2 + Gocode. Sublime text is also quite useful.

Related Article

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.