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>