Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mjarkk/fuzzy-matcher
- Owner: mjarkk
- License: mit
- Created: 2021-11-29T13:21:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-04T11:34:33.000Z (over 2 years ago)
- Last Synced: 2024-04-15T10:06:37.417Z (7 months ago)
- Language: Go
- Size: 153 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```