util

package
v0.0.0-...-43633ff Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UsernameRegex is the regex pattern for determining valid usernames
	UsernameRegex = "^[a-zA-Z0-9_]{3,25}$"
	// EmailRegex is the regex pattern for determining valid email addresses
	EmailRegex = `^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$`
)

Variables

This section is empty.

Functions

func GenerateRandomStrig

func GenerateRandomStrig(length int, numbers, lcase, ucase, specials bool) string

GenerateRandomStrig generates and returns a random string

Types

This section is empty.

Jump to

Keyboard shortcuts

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