checker

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelC
	LevelB
	LevelA
	LevelS
)

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(minLength, maxLength, minLevel int, pwd string) error

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 IsChinese

func IsChinese(str string) bool

func IsNotZeroString added in v1.0.2

func IsNotZeroString(s string) bool

IsNotZeroString check s is not empty string and is not "0"

func IsReservedUsername added in v1.0.2

func IsReservedUsername(username string) bool

IsReservedUsername checks whether the username is reserved

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL