mirror of
https://github.com/xxjwxc/public.git
synced 2025-09-26 20:01:19 +08:00
1
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user