customValidations

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCustomValidation

func NewCustomValidation(validationTag string, validationFunction func(fl validator.FieldLevel) bool) func() validations.CustomValidation

func ValidateIsraeliPhoneAll

func ValidateIsraeliPhoneAll(fl validator.FieldLevel) bool

validate phone number "031234567" | "0501234567"

func ValidateIsraeliPhoneMobile

func ValidateIsraeliPhoneMobile(fl validator.FieldLevel) bool

validate phone number "0501234567"

func ValidateLongDate

func ValidateLongDate(fl validator.FieldLevel) bool

validate datetime format "2009-11-10 23:00"

func ValidatePhoneNumberAll added in v0.6.0

func ValidatePhoneNumberAll(fl validator.FieldLevel) bool

func ValidateRegexp

func ValidateRegexp(fl validator.FieldLevel) bool

regular espression

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳