Eclipse C ++ configuration go Development Environment tutorial, eclipsego

Source: Internet
Author: User
Tags install go

Eclipse C ++ configuration go Development Environment tutorial, eclipsego
1. Install go

After installation, configure the environment variable GOROOT and GOPATH. The former is the installation path of go, and the latter is the engineering path of go.

2. Install the go plug-in

Gocode is the code auto-completion program; guru code navigation program; godef code jump program

(1) Click "help | install new software" of eclipse and enter "https://goclipse.github.io/releases/" in" Work with ". Click" addaddadd" and click "addadd ..." Button to manually add. For example:

(2) Select the check box before "GoClipse" in the red box and click "Finish" until the installation is complete.

(3) Click windows | preferences | go. Be sure to click Also add project... Check box

(4) Click go | tools. If you have these three plug-ins, you can directly Click Browse to import them. If not, click Download. G O P A T H / S R C Lower , Editing Translation Of II Into System Text Parts In "Role =" presentation "> Under GOPATH/src, the compiled binary file is G O P A T H / S R C Lower , Editing Translation Of II Into System Text Parts In Under GOPATH/bin. However, using this method by guru may cause an error (as if the download failed), so we will introduce in detail how to compile the guru through the source code.

Download the source code and shift the github.com/golang/-> tools downloaded from github to golang.org/x/ go build golang.org/x/tools/#/guru

The above steps are all in the src directory

Restart to run

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.