🔮 Tiny and blazing-fast fuzzy search in Go
This repository has been archived on 2024年06月28日 . You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
|
陈劭珑
a26d9b0a4f
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
|
||
|---|---|---|
| .gitignore | first commit | |
| .golangci.yml | first commit | |
| .woodpecker.yml | ci: add woodpecker.yml | |
| fuzzysearch.go | first commit | |
| fuzzysearch_example_test.go | first commit | |
| fuzzysearch_test.go | first commit | |
| go.mod | first commit | |
| justfile | first commit | |
| LICENSE | first commit | |
| README.md | first commit | |
Fuzzy Search
Tiny and blazing-fast fuzzy search in Go
Installation
go get codeberg.org/chensl/fuzzysearch
Examples
packagemainimport("fmt""codeberg.org/chensl/fuzzysearch")funcmain(){elems:=[]string{"cartwheel","foobar","wheel","baz"}pattern:="whl"fmt.Println(fuzzysearch.Find(elems,pattern))// Output: [wheel cartwheel]}