val

package
v0.0.0-...-21df774 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinUsernameLength = 3
	MaxUsernameLength = 25
	MinPasswordLength = 6
	MaxPasswordLength = 50
	MinEmailLength    = 3
	MaxEmailLength    = 200
	MinFullNameLength = 3
	MaxFullNameLength = 100
)

Variables

This section is empty.

Functions

func ValidateEmaiID

func ValidateEmaiID(email_id int64) error

func ValidateEmail

func ValidateEmail(email string) error

func ValidateFullName

func ValidateFullName(full_name string) error

func ValidatePassword

func ValidatePassword(password string) error

func ValidateSecretCode

func ValidateSecretCode(secret_code string) error

func ValidateString

func ValidateString(str string, minLength int, maxLenth int) error

func ValidateUsername

func ValidateUsername(username string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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