Mac OS build Golang and use Eclipse plug-in development Golang

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

1.

Download:

Golang installation package: https://code.google.com/p/go/downloads/detail?name=go1.1.2.darwin-amd64.pkg&can=2&q=


Eclipse Tool: HTTP://WWW.ECLIPSE.ORG/DOWNLOADS/PACKAGES/ECLIPSE-IDE-JAVA-DEVELOPERS/KEPLERSR1 (I'm under the Java edition)


2.

Install GO1.1.2.DARWIN-AMD64.PKG, the directory will be automatically created on Mac OS after installation is complete:/usr/local/go/


3.

To open a terminal to modify the environment configuration:

$ vim ~/.bash_profile

Added in Bash_profile file

Export Goroot=/usr/local/go
Export GOARCH=AMD64
Export Goos=darwin
Export path= $PATH: $GOROOT/bin

Then $QW Save exit

To activate the configuration:

$ source ~/.bash_profile

This allows you to enter commands in the terminal: Go Run hello.go


4.

Configure the Eclipse plugin to find the Help menu-"Install new software-" Input http://goclipse.googlecode.com/svn/trunk/goclipse-update-site/hook Goclipse then install. This allows you to create a Golang project






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.