Registry / utility / schollz-closestmatch

schollz-closestmatch

JSON →
library2.1.0+incompatiblegogounverified

A Go library for finding the closest match to a string from a set of strings.

go get github.com/schollz/closestmatch
INSTALL
IMPORT
SIG · SCHOLLZ-CLOSESTMAT
S
schollz-closestmatch
utilitygov2.1.0+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

closestmatch
github.com/schollz/closestmatch

Find the closest matching word from a list

package main import "github.com/schollz/closestmatch" func main() { words := []string{"cat", "dog", "bird"} cm := closestmatch.New(words, []int{2, 3, 4}) println(cm.Closest("dogg")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
schollz-closestmatch — go get schollz-closestmatch · libregistry