This is a creation in Article, where the information may have evolved or changed.
Details Here are detailed, the front can follow the introduction of a step-by-step
Main card in 3, installation go.tools Binaries This step, find a lot of information to find the whole.
First, you can build a local directory to store the source code, and this directory is set to Gopath, that is, the following sentence into the ~/.bash_profile
Export Gopath= $HOME/dev/goapp
Then set up three directories in the Goapp
bin, pkg, src, clone the following source code under SRC
Gocode
git clone https://github.com/nsf/gocode.git
goimports GorenameThese two can be found under tools.
git clone https://github.com/golang/tools.git
Godef
git clone https://github.com/rogpeppe/godef.git
Golint
git clone https://github.com/golang/lint.git
ErrcheckThe installation requires both
git clone https://github.com/kisielk/errcheck.git
git clone https://github.com/kisielk/gotool.git
When you're done, you can use go install
For example, the first can go install Gocode, some may report the error of the directory, need to properly adjust the source directory .
The default binaries are installed under goapp/bin and need to be moved all the $GOROOT/bin below, mine is in/usr/local/go/bin
You can go back and look at the above article.
There are two questions not understand: Mac under item highlighting does not take effect, Oracle source code temporarily did not add, do not know what the role.