Eclipse builds Golang for Windows

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

Accustomed to eclipse, so ...

Golang Windows Development Environment

Reference Document: Http://golang.org/doc/install

1. Download Go install package http://code.google.com/p/go/downloads/list

2. Install the download package

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.

Install and configure Goclipse goclipse is a plugin for eclipse, the current 0.8.0 version requires Java 7 and Eclipse4.3

3.1 Installing Jre-7u67-windows-x64.exe   3.2 Downloads Unzip the eclipse IDE for C + + developers Goclipse relies on the CDT component (should be required when debugging?) ), so download the decompression eclipse-cpp-luna-r-win32-x86_64.zip. If you are using a different code version of the IDE, you will also need to install the CDT component.   3.3 Installing Goclipse 2 ways: One is through Eclipse's install New software, and the other is to download the Goclipse package directly to the Eclipse directory. Method 1: https://github.com/GoClipse/releases/raw/master/ Method 2:https://github.com/goclipse/releases Click on the "Download ZIP" in the lower right corner Remember : Extract only the plugins and features two directories to the Eclipse directory, Do not put Artifacts.jar and Content.jar in the Eclipse directory, which will cause preferences to not show go configuration items, even if the deletion of these two files restart is useless! 3.4 Configuring Goclipse because both Goclipse and eclipse do not come with GDB and Gocode, you can use both of these programs in the Liteide package. Unzip liteidex23.2.windows.7z to D:\, and you can browse to the files in the subsequent configuration. gdb and Gocode can also be installed in other ways because it is most convenient to use the Liteide program, and other methods are not introduced.   Browse ... Browse to the Go installation directory and the Go Tools three paths will be populated automatically.  
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.