util

package
v0.0.0-...-b09820e Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStrToInt32

func ConvertStrToInt32(color string) (r, g, b uint8)

take the menu.fg, menu.bg, ect. and return rgb values as uint8 values

func ReadStdIn

func ReadStdIn(c chan string)

Types

type Rank

type Rank struct {
	Word string
	Rank float64
}

type Ranks

type Ranks []Rank

func FuzzySearch

func FuzzySearch(list []string, target string, caseInsensitive bool) Ranks

func InitRanks

func InitRanks(s []string) (R Ranks)

func (Ranks) Len

func (R Ranks) Len() int

func (Ranks) Less

func (R Ranks) Less(i, j int) bool

func (Ranks) Swap

func (R Ranks) Swap(i, j int)

Jump to

Keyboard shortcuts

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