Documentation
¶
Index ¶
- func Base(file string) bool
- func Filename(filename string) bool
- func Filepath(filepath string) bool
- func MaxStringLenWithoutNumberSuffix(checkString string, maxLen int) bool
- func Mobile(mobile string) bool
- func Password(password string) bool
- func PrefixOrSuffixSpace(str string) bool
- func StartWithAlpha(str string) (checked bool)
- func WithoutSpecialSymbol(str string) (l int, b bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxStringLenWithoutNumberSuffix ¶
MaxStringLenWithoutNumberSuffix 检查去掉'-数字'尾字符串后的字符串长度是否小于等于指定长度 并且一个中文算1个字符
func WithoutSpecialSymbol ¶
WithoutSpecialSymbol 不含特殊字符的有效名字 并且一个中文算1个字符 返回字符含有多少字符,是否有效 两边不算有效字符,中间空格算有效字符
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.
