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 PaddedIpValidator ¶
func PaddedIpValidator(fl validator.FieldLevel) bool
func ValidateStruct ¶
func ValidateStruct(in any) (*validator.InvalidValidationError, validator.ValidationErrors)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.