Clone this repo:

Branches

  1. 616b068 Moved go.mod to repository root by Kilian Evang · 3 years, 9 months ago master v1.0.1
  2. cae8b0e Added go.mod by Kilian Evang · 3 years, 9 months ago v1.0.0
  3. eb6844b Bugfix: init values in matrix depend on cost by Kilian Evang · 4 years, 5 months ago
  4. b7aaf30 Added preconfigured Options allowing for Sub by Kilian Evang · 4 years, 9 months ago
  5. b87bf01 Added options to test cases by Kilian Evang · 4 years, 9 months ago

golang-levenshtein

An implementation of the Levenshtein algorithm in Go. Provides edit distances, edit scripts and ratios for strings (slices of runes).

Installation

$ go get github.com/texttheater/golang-levenshtein/levenshtein

Documentation

The documentation can be viewed online here: https://godoc.org/github.com/texttheater/golang-levenshtein/levenshtein

See also

For a package that is similar but more generic and provides more control, check out Daniël de Kok’s editdistance.