This commit is contained in:
xxj
2023-02-27 11:48:51 +08:00
parent ecbc2d279c
commit a61b27579a

View File

@@ -5,6 +5,7 @@ import (
"os"
"regexp"
"strings"
"unicode/utf8"
)
// CheckParam 检测参数
@@ -78,3 +79,7 @@ func IsKeywords(t string) bool {
}
return false
}
func IsUtf8(data []byte) bool {
return utf8.Valid(data)
}