Next: Interacting with the Playground, Up: Navigating Code [Index]
go-mode
integrates with godef
, an amazing little tool written by Roger
Peppe. godef
is able to parse your code, and the code of other packages, and
the code of the Go standard library, and can tell you what exactly the symbol
you’re looking at means and where it has been defined.
Install godef
with:
go get code.google.com/p/rog-go/exp/cmd/godef
go-mode
makes use of this to provide the two functions:
godef-describe
(‘C-c C-d’)will tell you what you’re looking at
godef-jump
(‘C-c C-j’)will take you to its definition. This works across files, packages and into the standard library, without needing any tags. And it has almost no measurable delay.