Documentation ¶
Index ¶
- type Index
- func (idx *Index) InsertFunction(location extract.Location, fnc types.Function)
- func (idx *Index) InsertInterface(location extract.Location, ifc types.Interface)
- func (idx *Index) InsertValue(location extract.Location, val types.Value)
- func (idx *Index) Packages() [][]string
- func (idx *Index) Search(query string) ([]*Result, error)
- func (idx *Index) ToBytes(w io.Writer) error
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index stores types and enables them to be searched.
func NewIndexFromBytes ¶
NewIndexFromBytes decodes the reader's data into an index.
func (*Index) InsertFunction ¶
InsertFunction adds a function to the index.
func (*Index) InsertInterface ¶
InsertInterface adds an interface to the index.
func (*Index) InsertValue ¶
InsertValue adds a value to the index.
func (*Index) Packages ¶
Packages returns a list of all packages in the index. The first item will contain the standard library packages. Subsequent hosted packages are grouped by the host domain.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.