custom_validator

package
v0.0.0-...-991bd03 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateStruct

func ValidateStruct(r *http.Request, data interface{}) error

Types

type ValidatorError

type ValidatorError struct {
	Code    constant.InternalCode `json:"code"`
	Status  int                   `json:"status"`
	Message string                `json:"message"`
	Details []string              `json:"details"`
}

func (ValidatorError) Error

func (e ValidatorError) Error() string

Jump to

Keyboard shortcuts

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