GOLANG-GURU(1) | General Commands Manual | GOLANG-GURU(1) |
golang-guru - Go source code guru
golang-guru [ flag ... ] mode position
The mode argument determines the query to perform:
The position argument specifies the filename and byte offset (or range) of the syntax element to query. For example:
foo.go:#123,#128 bar.go:#123
The user manual is available here: http://golang.org/s/using-guru
plain An editor-friendly format in which every line of output is of the form "pos: text", where pos is "-" if unknown. This is the default.
json Structured data in JSON syntax.
xml Structured data in XML syntax.
Files in this archive will be used in preference to those in the file system. In this way, a text editor may supply guru with the contents of its unsaved buffers. Each archive entry consists of the file name, a newline, the decimal file size, another newline, and the contents of the file.
golang.org/x/tools/cmd/guru # a single package golang.org/x/tools/... # all packages beneath dir ... # the entire workspace.matches all encoding packages except encoding/xml.
A pattern preceded by '-' is negative, so the scope
encoding/...,-encoding/xml
Describe the syntax at offset 530 in this file (an import spec):
golang-guru describe src/golang.org/x/tools/cmd/guru/main.go:#530
This manual page was written by Michael Stapelberg <stapelberg@debian.org>, for the Debian project (and may be used by others).
2016-10-31 |