Eclipse Install go plugin (Ubuntu)

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

Download go1.4.2 for Linux:http://golangtc.com/download get a tar.gz file and execute it all the way

#解压go到默认的安装目录sudo tar-c/usr/local-xzf go*****tar.gz# The contents of the new environment variable VI ~/.profile#vi file export path= $PATH:/usr/local/go/ Binexport gopath=/home/cyper/gopath# make the configuration effective. Where is ~/.profile#go installed which go# the environment variable go env# code hint go get-u github.com/nsf/gocode
Install Goclipse, follow here: http://goclipse.github.io/, install new software input http://goclipse.github.io/releases/
Configuring go root for/usr/local/go in Eclipse pref


To the <<go language programming >> Start the first program.

Note that you need to specify a default Gopath to download the Code hints tool Gocode, my default Gopath is/home/cyper/gopath, so ...
Goclipse automatically adds the current project directory to Gopath so that the goclipse can generate the target file directly from the Go Build command to the bin directory. The
Calc.go does not have to be placed in the main directory ... The executable file that is placed in the main directory is called Main, and if you put it in the Calc directory, the resulting executable file is Calc.

Manual compilation of the process
CD <project_home>
Export gopath= $GOPAHT: ' pwd '
Go Build calc (if you want and correspond to go build main) /p>

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.