fuzzymatch

package
v0.0.2-alpha15 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuzzyMatcher

type FuzzyMatcher[T any] interface {
	Find(T) (T, bool)
}

func NewRegexpStringMetcher

func NewRegexpStringMetcher(matchers []StringFuzzyPair) FuzzyMatcher[string]

type StringFuzzyMatcher

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

func (*StringFuzzyMatcher) Find

func (fm *StringFuzzyMatcher) Find(s string) (string, bool)

type StringFuzzyPair

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

func NewFuzzyPair

func NewFuzzyPair(r *regexp.Regexp, s string) StringFuzzyPair

Jump to

Keyboard shortcuts

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