Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchResult ¶
type MatchResult struct {
Original string
Score float64
Insertions int
Deletions int
Substitutions int
Position int
}
MatchResult represents a single match, including similarity details.
func Match ¶
func Match(target string, candidates []string) []MatchResult
Match takes a target string and a list of candidate strings and returns all matches sorted by their similarity score.
Click to show internal directories.
Click to hide internal directories.