GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

       oracle - a tool for answering questions about Go source code

SYNOPSIS

       oracle [ flag ...  ] mode args ...

DESCRIPTION

       The -format flag controls the output format:
             plain    an editor-friendly format in which every line of output
                      is of the form "pos: text", where pos is "-" if unknown.
             json     structured data in JSON syntax.
             xml      structured data in XML syntax.

       The -pos flag is required in all modes except 'callgraph'.

       The mode argument determines the query to perform:

             callees       show possible targets of selected function call
             callers       show possible callers of selected function
             callgraph     show complete callgraph of program
             callstack     show path from callgraph root to selected function
             describe      describe selected syntax: definition, methods, etc
             freevars      show free variables of selection
             implements    show 'implements' relation for selected package
             peers         show send/receive corresponding to selected channel op
             referrers     show all refs to entity denoted by selected identifier

       The  user  manual  is available here:  http://golang.org/s/oracle-user-
       manual

OPTIONS

       -cpuprofile
              write cpu profile to file

       -format
              Output format.  One of {plain,json,xml}.

       -pos   Filename and byte offset or extent of  a  syntax  element  about
              which to query, e.g. foo.go:#123,#456, bar.go:#123.

       -ptalog
              Location of the points-to analysis log file, or empty to disable
              logging.

       -reflect
              Analyze reflection soundly (slow).

EXAMPLES

       Describe the syntax at offset 530 in this file (an import spec):

             oracle -pos=src/code.google.com/p/go.tools/cmd/oracle/main.go:#530 describe
             code.google.com/p/go.tools/cmd/oracle

       Print the callgraph of the trivial web-server in JSON format:

             oracle -format=json src/pkg/net/http/triv.go callgraph

AUTHOR

       This    manual    page    was    written    by    Michael    Stapelberg
       <stapelberg@debian.org>,  for  the  Debian  project (and may be used by
       others).

                                  2013-12-02                         ORACLE(1)



  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.118 seconds. Last modified: November 04 2018 12:49:43.