libValidate

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const RegexPaddedIp string = `^((25[0-5]|2[0-4]\d|1\d\d|0\d\d)\.?\b){4}$` //^((25[0-5]|2[0-4]\d|1\d\d|0\d\d)\.?\b){4}$

Variables

View Source
var (
	Validator  *validator.Validate
	Translator ut.Translator
)

Functions

func GetTranslator

func GetTranslator() ut.Translator

func Init

func Init()

func PaddedIpValidator

func PaddedIpValidator(fl validator.FieldLevel) bool

func ValidateStruct

func ValidateStruct(in any) (*validator.InvalidValidationError, validator.ValidationErrors)

Types

This section is empty.

Jump to

Keyboard shortcuts

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