ubuntu14.04, install, configure Go language development tool eclipse!!

Source: Internet
Author: User
Tags install go gocode

Before we configure eclipse, we have to make sure that these are installed and working properly:

One, go language: Reference article http://blog.csdn.net/sunylat/article/details/49859695

Second, Eclipse: reference article http://blog.csdn.net/sunylat/article/details/49866561

Iii. the CDT of Eclipse: Reference article http://blog.csdn.net/sunylat/article/details/49867033

Four, must install 1.8 JDK: reference article http://blog.csdn.net/sunylat/article/details/49882827

Five, set Gopath: Reference article http://blog.csdn.net/sunylat/article/details/49885471

Once the above conditions are met, we begin to configure eclipse:

One, install Goclipse: This is the Go language Eclipse plugin, official website: https://github.com/GoClipse/goclipse

How to install it: Use Eclipse's software upgrade feature to open Eclipse, "Help"-> "Install new Softwear", then click "Add" button, and "Location" to enter "http:// Goclipse.github.io/releases/", click" OK "button, followed by the same as the upgrade of other software, the plug-in after the installation, we can in the Eclipse" window "->" preferences "to the left to see "Go" project, which shows that we have successfully followed the goclipse.

Second, configure the Goclipse:goclipse configuration, there are mainly these:

1, set Goroot: Open "window"-> "preferences" to the left of the "Go" item, we found that need to configure two items: Goroot and Gopath, because I have configured these two, as long as the right choice is OK. Goroot I choose my Go language directory "/usr/local/go", Gopath use my configured system environment variables, after these two choices are completed, click the "Apply" button, this time, goclipse configuration completes 1/3.

2, install Gocode: It is the Go Language Code automatic ToolTip tool, it is very useful to write the go language inside the IDE.

Official address: Https://github.com/nsf/gocode

Installation: Into the shell, into the Gopath src directory, and then enter: "Go get-u github.com/nsf/gocode", if everything is normal, then we will find in the gopath below a "bin" directory, which has an executable program " Gocode ", we are in Eclipse's Go language Configuration interface of" tools "corresponding to the" Gocode ", select the executable, and then click the" Apply "button, then the code auto hint function should be available.

3, install go Oracle: It is the Go Language Code analysis tool, it is very useful to write and analyze the GO program inside the IDE.

Official address: Https://github.com/golang/tools

Download compiled go Oracle: This is the version of Go Oracle that I have compiled for you, respectively, for Windows and Linux.

Address: Https://github.com/golang/tools

Windows version: Oracle.exe

Linux version: Oracle

Compiled go oracle download address: http://download.csdn.net/detail/sunylat/9275905

After downloading, put the executable file into the Gopath bin directory, then in Eclipse's Go language Configuration Interface "tools" corresponding to "Go Oracle", select the corresponding operating system Oracle on it, in Ubuntu should choose " Oracle, then click on the "Apply" button, we go into eclipse, write some code, hold down CTRL, then click on Arbitrary code, we can see the source code of the selected code.

In this ubuntu14.10, Eclipse's Go language development environment is complete.


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.