PTGUvalidator

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatorErrorMessage

func ValidatorErrorMessage(errTag string, errParam interface{}) string

Types

type ValidatorErrorFieldListStruct

type ValidatorErrorFieldListStruct struct {
	Field      string      `json:"field"`
	InputValue interface{} `json:"value"`
	ErrorMsg   string      `json:"error_message"`
}

func Validate

func Validate(validateStruct interface{}) (isValidatePass bool, errorFieldList []ValidatorErrorFieldListStruct, validatorError error)

Jump to

Keyboard shortcuts

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