Categorygithub.com/bottlerocketlabs/fuzzy
modulepackage
0.0.0-20211112135547-c65180b6c569
Repository: https://github.com/bottlerocketlabs/fuzzy.git
Documentation: pkg.go.dev

# README

fuzzy

Fuzzy finder tool and library

❯ fuzzy --help
Usage:
        fuzzy [options] [query] - output selected line from stdin (fuzzy search)
  -v    verbose. print out scores with text

# Packages

No description provided by the author
No description provided by the author

# Functions

Find takes each line from provided content, computes the smith waterman score orders the content and provides a user-interface to select an option.
FindWithScreen is the same as Find, but you provide the Screen.
No description provided by the author
NewStr returns a ValueStringer type from a string.
NewStrList is a utility fuction to convert a string slice.
NewStrMap is a utility function to convert a string map.
ReadNewContent creates a new Content from new line separated input.
SupplyNewContent creates a new Content from a slice of ValueStringer types.

# Structs

Content holds the data for the fuzzy finder.
InputItem is an item of ValueStringer with a Score.
No description provided by the author
SortableInputItems can be Sorted by their Score and difference in length of query.
StrMapEntry implements ValueStringer.

# Interfaces

EnumerableValueStringer is iterable.
ValueStringer has a value and a string output, potentially different.

# Type aliases

Str is a simple string type.
StrList is a simple string slice.
StrMap uses the key as Value and value as String.