validationkit

package
v0.0.0-...-d41341d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: BSD-3-Clause 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