qutils

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL