diff options
author | Robert Griesemer <gri@golang.org> | 2010-03-19 12:46:43 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2010-03-19 12:46:43 -0700 |
commit | 371442a035212fa5d3dc1d6591c4b7494ca844ed (patch) | |
tree | e49fc66dc314d0ac0081d4fce38819a62d9ed569 /lib | |
parent | b5a05d2599991aec36f779e8f4883efe46fd4767 (diff) | |
download | golang-371442a035212fa5d3dc1d6591c4b7494ca844ed.tar.gz |
godoc: implemented command-line search
The command-line search is using a running webserver
as index server; i.e., the search result is reflecting
the index at the server. See the documentation for
details.
Usage: godoc -q query1 query2 ...
Known issue: Results don't show the all-important
line numbers yet due to the way the index is organized.
Next CL.
R=rsc, r
CC=golang-dev
http://codereview.appspot.com/648041
Diffstat (limited to 'lib')
-rw-r--r-- | lib/godoc/search.txt | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lib/godoc/search.txt b/lib/godoc/search.txt new file mode 100644 index 000000000..9ae98d5b4 --- /dev/null +++ b/lib/godoc/search.txt @@ -0,0 +1,52 @@ +QUERY = {Query} + +{.section Accurate} +{.or} +INDEXING IN PROGRESS - RESULT MAY BE INACCURATE + +{.end} +{.section Alt} +DID YOU MEAN +{.repeated section Alts} + {@} +{.end} + +{.end} +{.section Hit} +{.section Decls} +PACKAGE-LEVEL DECLARATIONS + +{.repeated section @} +package {Pak.Name} +{.repeated section Files} +{.repeated section Groups} +{.repeated section Infos} + {File.Path|url-src} +{.end} +{.end} +{.end} + +{.end} +{.end} +{.section Others} +LOCAL DECLARATIONS AND USES + +{.repeated section @} +package {Pak.Name} +{.repeated section Files} +{.repeated section Groups} +{.repeated section Infos} + {File.Path|url-src} +{.end} +{.end} +{.end} + +{.end} +{.end} +{.end} +{.section Illegal} +ILLEGAL QUERY SYNTAX + +A legal query is a single identifier (such as ToLower) +or a qualified identifier (such as math.Sin). +{.end} |