1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:14:42 -07:00
go/lib/godoc
Robert Griesemer 055650daa4 godoc: first cut at textual search
To enable use -fulltext flag; e.g.: godoc -v -fulltext -http=:7777

Enabling the fulltext index will use significantly more memory as
the text of all source code, the respective suffixarray, and the
file set data structure is kept in memory. At the moment there is
about 6Mb of source code (~1400 files) indexed under GOROOT.
Source code + suffix array together consume 5*(size of source) or
about 30Mb. The file set data structure consumes about 4b/src line.
By default only up to 5000 results are shown for now.

The presentation of the results needs tuning. In particular,
if a string is found, clicking on the respective file does not
highlight them, yet.

At the moment, only Go source files are indexed. Eventually,
the full text index should encompass other files as well.

R=rsc, adg
CC=golang-dev
https://golang.org/cl/3182043
2010-12-10 14:40:22 -08:00
..
codewalk.html godoc: canonicalize codewalk paths 2010-06-30 17:56:51 +10:00
codewalkdir.html godoc: add codewalk support 2010-04-26 22:35:12 -07:00
dirlist.html godoc: show relative file names without leading '/' (per r's request) 2010-03-24 16:28:59 -07:00
error.html godoc support for directories outside $GOROOT 2010-02-16 11:20:55 -08:00
godoc.html godoc: add separators between quick reference topics 2010-12-03 14:37:55 +11:00
package.html go/ast: use token.Pos instead of token.Position; adjust all dependent code 2010-12-06 14:23:18 -08:00
package.txt go/ast: use token.Pos instead of token.Position; adjust all dependent code 2010-12-06 14:23:18 -08:00
search.html godoc: first cut at textual search 2010-12-10 14:40:22 -08:00
search.txt godoc: line numbers for all remote search results 2010-03-19 22:48:08 -07:00
source.html go AST: First step towards augmenting AST with full type information. 2010-08-13 10:42:18 -07:00