Documentation ¶
Overview ¶
Package levenshtein implements a levenshtein distance algorithm.
Index ¶
Constants ¶
View Source
const ( DefaultInsertCost = 0.3 DefaultRemoveCost = 3 DefaultReplaceCost = 2 DefaultAppendCost = 0.1 DefaultCaseChangeCost = 0.01 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(cost) cost
func WithAppendCost ¶
func WithCaseChangeCost ¶
func WithChangeCost ¶
func WithInsertCost ¶
func WithRemoveCost ¶
Click to show internal directories.
Click to hide internal directories.