mirror of
https://github.com/golang/go
synced 2024-11-05 14:46:11 -07:00
cmd/oracle: add pointsto, whicherrs to help message
Also, remove stale example. Change-Id: Ifa1123b9dca49c991a16ef35eb7227847878c657 Reviewed-on: https://go-review.googlesource.com/19474 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
3440805344
commit
78e666a894
@ -66,8 +66,10 @@ The mode argument determines the query to perform:
|
|||||||
freevars show free variables of selection
|
freevars show free variables of selection
|
||||||
implements show 'implements' relation for selected type or method
|
implements show 'implements' relation for selected type or method
|
||||||
peers show send/receive corresponding to selected channel op
|
peers show send/receive corresponding to selected channel op
|
||||||
|
pointsto show variables to which the selected pointer may point
|
||||||
referrers show all refs to entity denoted by selected identifier
|
referrers show all refs to entity denoted by selected identifier
|
||||||
what show basic information about the selected syntax node
|
what show basic information about the selected syntax node
|
||||||
|
whicherrs show possible values of the selected error variable
|
||||||
|
|
||||||
The user manual is available here: http://golang.org/s/oracle-user-manual
|
The user manual is available here: http://golang.org/s/oracle-user-manual
|
||||||
|
|
||||||
@ -77,8 +79,6 @@ Describe the syntax at offset 530 in this file (an import spec):
|
|||||||
% oracle -pos=src/golang.org/x/tools/cmd/oracle/main.go:#530 describe \
|
% oracle -pos=src/golang.org/x/tools/cmd/oracle/main.go:#530 describe \
|
||||||
golang.org/x/tools/cmd/oracle
|
golang.org/x/tools/cmd/oracle
|
||||||
|
|
||||||
Print the callgraph of the trivial web-server in JSON format:
|
|
||||||
% oracle -format=json callstack $GOROOT/src/net/http/triv.go
|
|
||||||
` + loader.FromArgsUsage
|
` + loader.FromArgsUsage
|
||||||
|
|
||||||
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")
|
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")
|
||||||
|
Loading…
Reference in New Issue
Block a user