2

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.

enter image description here

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? enter image description here

Casper
  • 4,435
  • 10
  • 41
  • 72

3 Answers3

4

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.

OneOfOne
  • 95,033
  • 20
  • 184
  • 185
1

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:

  • Check the GOPATH folder

enter image description here

  • Navigate to the GOPATH folder\bin, and make sure that the required exe file are installed enter image description here
  • Set the exe paths in eclipse

enter image description here

  • Here is the result enter image description here
Bassel Kh
  • 1,941
  • 1
  • 19
  • 30
1

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.

enter image description here

Ubercool
  • 1,029
  • 2
  • 14
  • 29