Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mjarkk/fuzzy-matcher

A GoLang fuzzy string matcher
https://github.com/mjarkk/fuzzy-matcher

Last synced: about 1 month ago
JSON representation

A GoLang fuzzy string matcher

Awesome Lists containing this project

README

        

# `fuzzy-matcher`

A fast golang fuzzy string matcher

```go
// New matcher creates a new matcher to be used for matching
// Note that this operation takes the most time
matcher := fuzzymatcher.NewMatcher(
"I love trees",
"bananas are the best fruit",
"peer",
)

// match returns the best match for the given string or -1 if no match was found
fmt.Println(matcher.Match("do i love the trees") == 0)
```