index

package
v0.0.0-...-bcff8af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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
}

func NewIndex

func NewIndex(
	indexDataDir string,
	maxResults int,
	logger *zap.SugaredLogger,
) (*Index, error)

func (*Index) Search

func (i *Index) Search(keywords ...string) ([][2]string, error)

type IndexInterface

type IndexInterface interface {
	Search(keywords ...string) ([][2]string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL