1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

doc: update doc for validator package

This commit is contained in:
dudaodong
2023-01-06 14:14:00 +08:00
parent 4044deac70
commit e21dd07d46
4 changed files with 171 additions and 68 deletions

View File

@@ -69,7 +69,7 @@ func ContainUpper(str string) bool {
return false
}
// ContainLower check if the string contain at least one lower case letter A-Z.
// ContainLower check if the string contain at least one lower case letter a-z.
// Play: https://go.dev/play/p/Srqi1ItvnAA
func ContainLower(str string) bool {
for _, r := range str {
@@ -192,7 +192,7 @@ func IsChineseIdNum(id string) bool {
return chineseIdMatcher.MatchString(id)
}
// ContainChinese check if the string contain mandarin chinese..
// ContainChinese check if the string contain mandarin chinese.
// Play: https://go.dev/play/p/7DpU0uElYeM
func ContainChinese(s string) bool {
return chineseMatcher.MatchString(s)