$ go get golang.org/x/tools/cmd/guru
$ go build golang.org/x/tools/cmd/guru
$ mv guru $(go env GOROOT)/bin (for example)
Go source code guru.
Usage: guru [flags] <mode> <position>
Although guru is a command-line tool, it is intended to be executed by your editor. The output of
most guru queries is a list of diagnostics, each prefixed by a source file name, line number, and
column number, similar to the diagnostic output of a typical compiler. Most editors can display
compiler output in a buffer so that clicking on a diagnostic opens the relevant source file at the
Consult the documentation specific to your editor to complete the installation.