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