type Candidate … type Field … type LexType … const Const … const Var … const Type … const Func … // Lookup finds all the symbols in the index with the given PkgName and name. // If prefix is true, it finds all of these with name as a prefix. func (ix *Index) Lookup(pkg, name string, prefix bool) []Candidate { … } func toFields(sig []string) []Field { … } // benchmarks show this is measurably better than strings.Split func fastSplit(x string) []string { … } func asLexType(c byte) LexType { … }