Documentation
¶
Overview ¶
Package fuzzy holds small string-similarity helpers shared across the codebase. It is dependency-free and low-level so both the framework and the CLI (which cannot import each other) can reuse one implementation instead of maintaining copies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Levenshtein ¶
Levenshtein returns the edit distance between a and b — the minimum number of single-character insertions, deletions, or substitutions to turn one into the other. Inputs are compared bytewise; for ASCII identifiers (command names, field names) that is equivalent to rune distance.
It uses two rolling rows, so allocation and memory are O(len(b)); the identifier lists it runs against are tiny.
Types ¶
This section is empty.