Documentation
¶
Index ¶
- Constants
- func CheckPassword(minLength, maxLength, minLevel int, pwd string) error
- func IsChinese(str string) bool
- func IsInvalidUsername(username string) bool
- func IsNotZeroString(s string) bool
- func IsReservedUsername(username string) bool
- func IsSupportedImageFile(file io.Reader, ext string) bool
Constants ¶
View Source
const ( LevelC LevelB LevelA LevelS )
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
CheckPassword minLength: Specifies the minimum length of a password maxLength:Specifies the maximum length of a password minLevel:Specifies the minimum strength level required for passwords pwd:Text passwords
func IsInvalidUsername ¶ added in v1.0.4
func IsNotZeroString ¶ added in v1.0.2
IsNotZeroString check s is not empty string and is not "0"
func IsReservedUsername ¶ added in v1.0.2
IsReservedUsername checks whether the username is reserved
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.