compare

package
v0.0.0-...-9d40a61 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlgorithmOptions

type AlgorithmOptions struct {
	Algorithm *string
}

func (*AlgorithmOptions) AddFlags

func (o *AlgorithmOptions) AddFlags(fs *flag.FlagSet, prefix string)

type Comparer

type Comparer interface {
	Compare(s string) bool
}

func New

func New(algoOpts *AlgorithmOptions, lookbackOpts *LookBackOptions, tokenizerOpts *tokenizers.TokenizerOptions, similarity float64, stats *Stats) Comparer

type ListWindow

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

func (*ListWindow) Add

func (w *ListWindow) Add(item interface{})

func (*ListWindow) Front

func (w *ListWindow) Front() *list.Element

func (*ListWindow) Promote

func (w *ListWindow) Promote(e *list.Element)

type LookBackOptions

type LookBackOptions struct {
	Lookback *int
}

func (*LookBackOptions) AddFlags

func (o *LookBackOptions) AddFlags(fs *flag.FlagSet, prefix string)

type NewWordCompare

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

func (*NewWordCompare) Compare

func (n *NewWordCompare) Compare(in string) bool

type SetCompare

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

func (*SetCompare) Compare

func (s *SetCompare) Compare(in string) bool

type Stats

type Stats struct {
	Loops    int
	Compares int
}

Jump to

Keyboard shortcuts

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