type comparer …
type interfaceSlice …
type RunList …
func (h RunList) sort(less comparer) { … }
func (p *interfaceSlice) Len() int { … }
func (p *interfaceSlice) Less(i, j int) bool { … }
func (p *interfaceSlice) Swap(i, j int) { … }
func (h RunList) reduce(less comparer, newRun func(h RunList) interface{ … }
const removeDuplicates …
type KindRun …
func (k KindRun) Len() int { … }
func (k KindRun) Less(i, j int) bool { … }
func (k KindRun) Swap(i, j int) { … }
func lessKind(x, y interface{ … }
func newKindRun(h RunList) interface{ … }
type Pak …
func (p *Pak) less(q *Pak) bool { … }
type File …
func (f *File) Path() string { … }
type Spot …
type FileRun …
func lessSpot(x, y interface{ … }
func newFileRun(h RunList) interface{ … }
type PakRun …
func (p *PakRun) Len() int { … }
func (p *PakRun) Less(i, j int) bool { … }
func (p *PakRun) Swap(i, j int) { … }
func lessFileRun(x, y interface{ … }
func newPakRun(h RunList) interface{ … }
type HitList …
func lessPakRun(x, y interface{ … }
func reduce(h0 RunList) HitList { … }
func (h HitList) filter(pakname string) HitList { … }
type wordPair …
type AltWords …
func lessWordPair(x, y interface{ … }
func newAltWords(h RunList) interface{ … }
func (a *AltWords) filter(s string) *AltWords { … }
type Ident …
type byImportCount …
func (ic byImportCount) Len() int { … }
func (ic byImportCount) Less(i, j int) bool { … }
func (ic byImportCount) Swap(i, j int) { … }
func (ic byImportCount) String() string { … }
func (ic byImportCount) filter(pakname string) []Ident { … }
func (ic byImportCount) top(n int) []Ident { … }
type IndexResult …
type Statistics …
type Indexer …
func (x *Indexer) intern(s string) string { … }
func (x *Indexer) lookupPackage(path, name string) *Pak { … }
func (x *Indexer) addSnippet(s *Snippet) int { … }
func (x *Indexer) visitIdent(kind SpotKind, id *ast.Ident) { … }
func (x *Indexer) visitFieldList(kind SpotKind, flist *ast.FieldList) { … }
func (x *Indexer) visitSpec(kind SpotKind, spec ast.Spec) { … }
func (x *Indexer) visitGenDecl(decl *ast.GenDecl) { … }
func (x *Indexer) Visit(node ast.Node) ast.Visitor { … }
func (x *Indexer) addFile(f vfs.ReadSeekCloser, filename string, goFile bool) (file *token.File, ast *ast.File) { … }
var whitelisted …
func isWhitelisted(filename string) bool { … }
func (x *Indexer) indexDocs(dirname string, filename string, astFile *ast.File) { … }
func (x *Indexer) indexGoFile(dirname string, filename string, file *token.File, astFile *ast.File) { … }
func (x *Indexer) visitFile(dirname string, fi os.FileInfo) { … }
type indexOptions …
type LookupResult …
type Index …
func canonical(w string) string { … }
const maxOpenFiles …
const maxOpenDirs …
func (c *Corpus) throttle() float64 { … }
func (c *Corpus) NewIndex() *Index { … }
var ErrFileIndexVersion …
const fileIndexVersion …
type fileIndex …
func (x *fileIndex) Write(w io.Writer) error { … }
func (x *fileIndex) Read(r io.Reader) error { … }
func (x *Index) WriteTo(w io.Writer) (n int64, err error) { … }
func (x *Index) ReadFrom(r io.Reader) (n int64, err error) { … }
func (x *Index) Stats() Statistics { … }
func (x *Index) ImportCount() map[string]int { … }
func (x *Index) PackagePath() map[string]map[string]bool { … }
func (x *Index) Exports() map[string]map[string]SpotKind { … }
func (x *Index) Idents() map[SpotKind]map[string][]Ident { … }
func (x *Index) lookupWord(w string) (match *LookupResult, alt *AltWords) { … }
func isIdentifier(s string) bool { … }
func (x *Index) Lookup(query string) (*SearchResult, error) { … }
func (x *Index) Snippet(i int) *Snippet { … }
type positionList …
func (list positionList) Len() int { … }
func (list positionList) Less(i, j int) bool { … }
func (list positionList) Swap(i, j int) { … }
func unique(list []int) []int { … }
type FileLines …
func (x *Index) LookupRegexp(r *regexp.Regexp, n int) (found int, result []FileLines) { … }
func (c *Corpus) invalidateIndex() { … }
func (c *Corpus) feedDirnames(ch chan<- string) { … }
func (c *Corpus) fsDirnames() <-chan string { … }
func (x *Index) CompatibleWith(c *Corpus) bool { … }
func (c *Corpus) readIndex(filenames string) error { … }
func (c *Corpus) ReadIndexFrom(r io.Reader) error { … }
func (c *Corpus) UpdateIndex() { … }
func (c *Corpus) RunIndexer() { … }
type countingWriter …
func (c countingWriter) Write(p []byte) (n int, err error) { … }
type byteReader …
type countingReader …
func (c countingReader) Read(p []byte) (n int, err error) { … }
func (c countingReader) ReadByte() (b byte, err error) { … }