Versions in this module Expand all Collapse all v1 v1.0.0 Nov 27, 2022 Changes in this version + func Add(uint64 []int, int int) []int + func Base64Encode(s string) string + func Dimensionality(ins []int) []int + func Int32StrToInts(ins string) []int + func IntsToStr(ins []int) string + func StrToStrs(s string, lenth int) []string + func StrToStrs4(s string, lenth int) []string + func StringToBytes(s string) (b []byte) + type Compare func(s1, s2 string) float64 + type Cosine struct + func (c Cosine) CompareAscii(s1, s2 string) float64 + func (c Cosine) CompareUtf8(utf8Str1, utf8Str2 string) float64 + type DiceCoefficient struct + Ngram int + func (d *DiceCoefficient) CompareAscii(s1, s2 string) float64 + func (d *DiceCoefficient) CompareUtf8(s1, s2 string) float64 + type EditDistance struct + func (e *EditDistance) CompareAscii(s1, s2 string) float64 + func (e *EditDistance) CompareUtf8(utf8Str1, utf8Str2 string) float64 + type Hamming struct + func (h *Hamming) CompareAscii(s1, s2 string) float64 + func (h *Hamming) CompareUtf8(utf8Str1, utf8Str2 string) float64 + type Jaro struct + MatchWindow int + func (j *Jaro) CompareAscii(s1, s2 string) float64 + func (j *Jaro) CompareUtf8(s1, s2 string) float64 + type JaroWinkler struct + MatchWindow int + func (j *JaroWinkler) CompareAscii(s1, s2 string) float64 + func (j *JaroWinkler) CompareUtf8(s1, s2 string) float64 + type Match struct + S string + Score float64 + type MatchResult struct + AllResult []*Match + BestIndex int + Match *Match + type Simhash struct + func (s Simhash) CompareAscii(s1, s2 string) float64 + func (s Simhash) CompareUtf8(utf8Str1, utf8Str2 string) float64