📅 2016-May-16 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ eclipse, go, goclipse, godef, open definition ⬩ 📚 Archive
The Open Definition operation in a default installation of Go and GoClipse does not work. This functionality of being able to jump to the definition of a type or function is provided by a tool named godef.
$ go get -v github.com/rogpeppe/godef
This installs a godef
binary in the $GOPATH/bin
directory.
Open Window -> Preferences -> Go -> Tools and set the path to the godef
binary here.
Restart Eclipse. Right-click on any member or function and choose Open Definition, it should work now!
Note that GoClipse still does not provide the useful feature of showing details of a type or function in tooltip when you hover over something in the source file.
Tried with: GoClipse 0.14.1, Eclipse 4.5.2, Go 1.6.2 and Ubuntu 14.04