similartext

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DistanceSkipped = 3

MaxDistanceIgnored is the maximum Levenshtein distance from which we won't consider a string similar at all and thus will be ignored.

Functions

func Find

func Find(names []string, src string) string

Find returns a string with suggestions for name(s) in `names` similar to the string `src` until a max distance of `DistanceSkipped`.

func FindFromMap

func FindFromMap(names interface{}, src string) string

FindFromMap does the same as Find but taking a map instead of a string array as first argument.

Types

This section is empty.

Jump to

Keyboard shortcuts

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