Skip to content

khmerlang/levenshtein

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Levenshtein Distance

Levenshtein Distance for calculate distance of two string in Golang.

Install

go get github.com/khmerlang/levenshtein

Example

package main

import (
  "fmt"
  "github.com/khmerlang/levenshtein"
)

func main() {
  s1 := "កកោស"
  s2 := "ក"
  fmt.Printf("ចំងាយរវាង %v និង %v គឺ %v\n",
    s1, s2, levenshtein.Distance(s1, s2))
  // -> ចំងាយរវាង កកោស និង ក គឺ 3
}

About

Levenshtein distance between string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages