mirror of
https://github.com/xxjwxc/public.git
synced 2025-10-04 15:32:46 +08:00
1
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
"unicode/utf8"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckParam 检测参数
|
// CheckParam 检测参数
|
||||||
@@ -78,3 +79,7 @@ func IsKeywords(t string) bool {
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IsUtf8(data []byte) bool {
|
||||||
|
return utf8.Valid(data)
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user