forked from free-lancers/electricity_bill_calc_service
feat(excel):尝试增加Excel通用解析过程。
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user