Compare commits
2
Commits
be72e0b4f9
...
a4ac86d5d8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4ac86d5d8 | ||
|
|
c21f29c721 |
@@ -135,3 +135,8 @@ func Random(length int, sourceCharList string) string {
|
||||
}
|
||||
return string(genStrByte)
|
||||
}
|
||||
|
||||
// ValidateNotEmpty 验证字符串去前后空格之后不为空
|
||||
func ValidateNotEmpty(str string) bool {
|
||||
return strings.TrimSpace(str) != ""
|
||||
}
|
||||