Reputation: 4753
After reading the guide on https://github.com/nsf/gocode, I tried the command go get -u -ldflags -H=windowsgui github.com/nsf/gocode
. I don't get any response after this command.
I also found that there is a place in GoClipse that can let me input the path of GoCode. So, I think maybe I already have GoCode in my windows pc but what is its location?
Upvotes: 2
Views: 8051
Reputation: 1549
One quick addition to the other answers suggesting to using the Download buttons in Eclipse to download gocode, guru and godef.
The commands produced by Eclipse are no longer working as go get is deprecated.
Use these commands instead (via cmd).
Then browse in Eclipse (Window -> Preferences -> Go -> Tools) for the respective .exe files:
Upvotes: 0
Reputation: 1021
Navigate to Window -> Preferences -> Go -> Tools Easiest and quickest way is to click the download buttons under gocode, guru and godef. Eclipse will automatically do the rest of things for you.
Upvotes: 1
Reputation: 1977
just go to the command line and type: go env
Navigate to GOPATH directory in windows, you will find bin folder underneath, open the folder, you will see all the required exe files installed, just mentioned them in eclipse, Example from my env:
Upvotes: 1
Reputation: 99351
go get
won't output anything unless there's an error.
The location for anything you install with the go tools is $GOPATH/bin
, $GOPATH
depends on your environment.
If you're not sure where it is, run go env
and it will print a list of the environment variables that Go uses, including GOPATH.
Upvotes: 4