Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sahilm/fuzzy
/ functions
Functions
36 in github.com/sahilm/fuzzy
⨍
Functions
36
◇
Types & classes
6
↓ 9 callers
Function
Find
* Find looks up pattern in data and returns matches in descending order of match quality. Match quality is determined by a set of bonus and penalty ru
fuzzy.go:94
↓ 3 callers
Function
contains
(needle int, haystack []int)
_example/main.go:232
↓ 2 callers
Function
FindFrom
* FindFrom is an alternative implementation of Find using a Source instead of a list of strings. */
fuzzy.go:110
↓ 2 callers
Function
FindFromIterNoSort
* FindFromIterNoSort is an alternative implementation of FindFromIter that does not sort results in the end. */
fuzzy.go:138
↓ 2 callers
Function
FindFromNoSort
* FindFromNoSort is an alternative FindFrom implementation that does not sort results in the end. */
fuzzy.go:120
↓ 2 callers
Function
equalFold
Taken from strings.EqualFold
fuzzy.go:247
↓ 1 callers
Function
FindFromIter
* FindFromIter is an alternative implementation of FindFrom that uses an iterator instead of Source. */
fuzzy.go:128
↓ 1 callers
Method
Len
The length of the source. Typically is the length of the slice of things that you want to match.
fuzzy.go:53
↓ 1 callers
Method
Len
()
fuzzy_test.go:144
↓ 1 callers
Method
String
The string to be matched at position i.
fuzzy.go:51
↓ 1 callers
Method
String
(i int)
fuzzy_test.go:140
↓ 1 callers
Method
Values
()
fuzzy_test.go:148
↓ 1 callers
Function
adjacentCharBonus
(i int, lastMatch int, currentBonus int)
fuzzy.go:272
↓ 1 callers
Function
isSeparator
(s rune)
fuzzy.go:279
↓ 1 callers
Function
iterFromSource
(s Source)
fuzzy.go:64
↓ 1 callers
Function
max
(x int, y int)
fuzzy.go:288
Function
BenchmarkFind
(b *testing.B)
fuzzy_test.go:326
Function
FindNoSort
* FindNoSort is an alternative Find implementation that does not sort the results in the end. */
fuzzy.go:102
Method
Len
()
fuzzy.go:42
Method
Len
()
fuzzy.go:62
Method
Less
(i, j int)
fuzzy.go:44
Method
String
(i int)
fuzzy.go:58
Method
Swap
(i, j int)
fuzzy.go:43
Function
TestFindFromIter
(t *testing.T)
fuzzy_test.go:189
Function
TestFindFromSource
(t *testing.T)
fuzzy_test.go:158
Function
TestFindWithCannedData
(t *testing.T)
fuzzy_test.go:25
Function
TestFindWithRealworldData
(t *testing.T)
fuzzy_test.go:220
Function
TestFindWithUnicode
(t *testing.T)
fuzzy_test.go:18
Function
cursorDown
(g *gocui.Gui, v *gocui.View)
_example/main.go:66
Function
cursorUp
(g *gocui.Gui, v *gocui.View)
_example/main.go:79
Function
finder
(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier)
_example/main.go:150
Function
layout
(g *gocui.Gui)
_example/main.go:106
Function
main
()
_example/main.go:23
Function
quit
(g *gocui.Gui, v *gocui.View)
_example/main.go:146
Function
switchToMainView
(g *gocui.Gui, view *gocui.View)
_example/main.go:99
Function
switchToSideView
(g *gocui.Gui, view *gocui.View)
_example/main.go:92