feat(excel):尝试增加Excel通用解析过程。

This commit is contained in:
徐涛
2022-08-17 14:00:40 +08:00
parent 0fbe021252
commit b1b4da996e
5 changed files with 214 additions and 2 deletions

View File

@@ -15,6 +15,11 @@ func Contains[T string | int | uint](element T, slice []T) bool {
return false
}
func ContainsInsensitive(element string, slice []string) bool {
lowercasedElement := strings.TrimSpace(strings.ToLower(element))
return Contains(lowercasedElement, slice)
}
func PinyinAbbr(source string) string {
abbr := pinyin.Pinyin(source, pinyin.NewArgs())
var abbrCollect = make([]string, 0)