A tool for golang, to find references of given identifier.
You'll need rog-go repository to compile goref.
go get -u code.google.com/p/rog-go/
go get -u github.com/zhouhua015/goref
Well, it's exactly like godef, except without "-i" option.
goref -f FILE_NAME -o 255 path/to/your/desired/directory
Give -f and -o to specify file name and offset to find identifier, the last directory is the desired place wherever you want to search for references.
Note: The result will only reflect information from the saved files. Save the changes if you want to get accurate result.
Currently, only a "lame" Vim plugin is available. :)
- Support search of promoted fields/methods.
- Recognize type switch identifier across multiple 'case's