validate

package
v0.0.0-...-115e584 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0, GPL-2.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmail

func IsEmail(email string) (err error)

IsEmail 验证是否是合法的邮箱

func IsPassword

func IsPassword(password, rePassword string) error

IsPassword 是否是合法的密码

func IsURL

func IsURL(url string) error

IsURL 是否是合法的URL

func IsUsername

func IsUsername(username string) error

IsUsername 验证用户名合法性,用户名必须由5-12位(数字、字母、_、-)组成,且必须以字母开头。

Types

This section is empty.

Jump to

Keyboard shortcuts

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