similartext

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: Apache-2.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