eclipsegogoclipse

How to set up GoCode for GoClipse?


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


Solution

  • 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.