Documentation ¶ Index ¶ func Levenshtein(a, b string) int func Similarity(a, b string) float64 func SimilarityArrayAndSort(target string, v []string) []int func SimilarityArraySelect(target string, v []string) string type Co Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Levenshtein ¶ func Levenshtein(a, b string) int 计算两个字符串的Levenshtein距离 func Similarity ¶ func Similarity(a, b string) float64 相似度评分 func SimilarityArrayAndSort ¶ func SimilarityArrayAndSort(target string, v []string) []int 相似度匹配并排序 func SimilarityArraySelect ¶ func SimilarityArraySelect(target string, v []string) string Types ¶ type Co ¶ type Co struct { // contains filtered or unexported fields } Source Files ¶ View all Source files qutils.go Click to show internal directories. Click to hide internal directories.