validation

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeSpecialChars

func ExcludeSpecialChars(fl validator.FieldLevel) bool

ExcludeSpecialChars will accept a string not containing any special characters.

func ExcludeSpecialCharsAndWhiteSpaces

func ExcludeSpecialCharsAndWhiteSpaces(fl validator.FieldLevel) bool

ExcludeSpecialCharsAndWhiteSpaces will accept a string not containing any special characters and white spaces.

func Match

func Match(reg *regexp.Regexp, fl validator.FieldLevel) bool

Match will check the value of fl matching with regexp2 or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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