Eclipse C ++ configuration go Development Environment tutorial, eclipsego
1. Install go
After installation, configure the environment variable GOROOT and GOPATH. The former is the installation path of go, and the latter is the engineering path of go.
2. Install the go plug-in
Gocode is the code auto-completion program; guru code navigation program; godef code jump program
(1) Click "help | install new software" of eclipse and enter "https://goclipse.github.io/releases/" in" Work with ". Click" addaddadd" and click "addadd ..." Button to manually add. For example:
(2) Select the check box before "GoClipse" in the red box and click "Finish" until the installation is complete.
(3) Click windows | preferences | go. Be sure to click Also add project... Check box
(4) Click go | tools. If you have these three plug-ins, you can directly Click Browse to import them. If not, click Download. G O P A T H / S R C Lower , Editing Translation Of II Into System Text Parts In "Role =" presentation "> Under GOPATH/src, the compiled binary file is G O P A T H / S R C Lower , Editing Translation Of II Into System Text Parts In Under GOPATH/bin. However, using this method by guru may cause an error (as if the download failed), so we will introduce in detail how to compile the guru through the source code.
Download the source code and shift the github.com/golang/-> tools downloaded from github to golang.org/x/ go build golang.org/x/tools/#/guru
The above steps are all in the src directory
Restart to run