fuzzyfinder

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAbort = fuzzyfinder.ErrAbort

Functions

This section is empty.

Types

type Finder

type Finder struct{}

func New

func New() *Finder

func (*Finder) Find

func (f *Finder) Find(pkgs []*Package) ([]int, error)

type MockFuzzyFinder

type MockFuzzyFinder struct {
	// contains filtered or unexported fields
}

func NewMock

func NewMock(idxs []int, err error) *MockFuzzyFinder

func (*MockFuzzyFinder) Find

func (f *MockFuzzyFinder) Find(pkgs []*Package) ([]int, error)

type MockVersionSelector

type MockVersionSelector struct {
	// contains filtered or unexported fields
}

func NewMockVersionSelector

func NewMockVersionSelector(idx int, err error) *MockVersionSelector

func (*MockVersionSelector) Find

func (s *MockVersionSelector) Find(versions []*Version, hasPreview bool) (int, error)

type Package

type Package struct {
	PackageInfo  *registry.PackageInfo
	RegistryName string
	Version      string
}

type Version

type Version struct {
	Name        string
	Version     string
	Description string
	URL         string
}

func ConvertStringsToVersions

func ConvertStringsToVersions(arr []string) []*Version

type VersionSelector

type VersionSelector struct{}

func NewVersionSelector

func NewVersionSelector() *VersionSelector

func (*VersionSelector) Find

func (s *VersionSelector) Find(versions []*Version, hasPreview bool) (int, error)

Jump to

Keyboard shortcuts

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