search

package
v0.0.0-...-016edcc Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuzzyFindTarget

func FuzzyFindTarget(targets specs.Targets, s string, max int) specs.Targets
func Search(targets specs.Targets, query string) error

Types

type Func

type Func func(querys string, max int) (Result, error)

func NewSearch

func NewSearch(targets specs.Targets) (Func, error)

type FuncCtx

type FuncCtx func(ctx context.Context, querys string, max int) (Result, error)

func NewSearchCtx

func NewSearchCtx(targets specs.Targets) (FuncCtx, error)

type Result

type Result struct {
	Targets specs.Targets
	Total   uint64
}

Jump to

Keyboard shortcuts

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