validators

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGreaterThanEqualInt

func IsGreaterThanEqualInt(value int, min int) bool

func IsGreaterThanInt

func IsGreaterThanInt(value int, min int) bool

func IsNotEmpty

func IsNotEmpty(text string) bool

func IsPhoneNumber

func IsPhoneNumber(phone string) bool

func IsPositiveNumber

func IsPositiveNumber(number int) bool

func IsValidAge

func IsValidAge(birthDate *time.Time, age int) bool

func IsValidEmail

func IsValidEmail(email string) bool

func IsValidName

func IsValidName(name string, min int, max int) bool

func IsValidNumericId

func IsValidNumericId(id int) bool

func IsValidPassword

func IsValidPassword(password string) bool

func IsValidUuid

func IsValidUuid(id string) bool

func MinLength

func MinLength(text string, min int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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