From 78e666a89491edaed6ef187b66127814670bbafa Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 11 Feb 2016 17:20:40 -0500 Subject: [PATCH] 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 --- cmd/oracle/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/oracle/main.go b/cmd/oracle/main.go index 7b23b15171..42b18d08b2 100644 --- a/cmd/oracle/main.go +++ b/cmd/oracle/main.go @@ -66,8 +66,10 @@ The mode argument determines the query to perform: freevars show free variables of selection implements show 'implements' relation for selected type or method 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 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 @@ -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 \ 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 var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")