validationkit

package
v0.0.0-...-4004e94 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EmailRegex = `(?i)^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})+$`
View Source
const UsernameRegex string = `^@?(\w){1,15}$`

Variables

This section is empty.

Functions

func CheckEmailSyntax

func CheckEmailSyntax(email string) bool

func CheckUsernameSyntax

func CheckUsernameSyntax(username string) bool

func GenerateRandomUsername

func GenerateRandomUsername() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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