val

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package val populate func() to validate incoming request

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEmail

func ValidateEmail(value string) error

ValidateEmail to validate email reqeust (email structure and email min max length )

func ValidateEmailId

func ValidateEmailId(value int64) error

func ValidateFullName

func ValidateFullName(value string) error

ValidateFullName to validate full_name field request(min max length & regex check)

func ValidatePassword

func ValidatePassword(value string) error

ValidatePassword to validate password request (min-max length)

func ValidateSecretCode

func ValidateSecretCode(value string) error

func ValidateString

func ValidateString(value string, minLength int, maxLength int) error

ValidateString validate string min&max behaviour

func ValidateUsername

func ValidateUsername(value string) error

ValidateUsername to validate username request request(min max length & regex check)

Types

This section is empty.

Jump to

Keyboard shortcuts

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