This is a creation in Article, where the information may have evolved or changed.
The Go Language installation package is simple to configure, and today the Go language Eclipse plugin goclipse is found, allowing you to compile and debug go programs directly in Eclipse.
Eclipse Online Install plugin address http://goclipse.googlecode.com/svn/trunk/goclipse-update-site/
Restart Eclipse when the installation is complete, configure window---Preference Go
Goroot---> C:\go
Gopath-C:\go
GOOS--Windows
Goarch-386
Gocode-D:\gocode-win32\gocode.exe
C:\go is my go install location.
D:\gocode-win32\gocode.exe is my Gocode installation location and can be downloaded to https://code.google.com/p/goclipse/downloads/list gocode-win32.zip .
After the above operation is complete, create a new Go project, create a new source file in Src, a.go. Then you can run.
A.gopackage mainimport "FMT" Func Main () {FMT. Printf ("Hello World")}
Note here that the main source file needs to be selected, which is the file where the main method of Go