github.com/bylevel/godef

Print where symbols are defined in Go source code


License
BSD-3-Clause
Install
go get github.com/bylevel/godef

Documentation

## godef - find symbol information in Go source

Godef, given an expression or a location in a source file, prints the
location of the definition of the symbol referred to.

Known limitations:

- it does not understand about "." imports
- it does not like imports where the last element import path doesn't match
the package identifier.