binding

package
v1.3.169 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldBind added in v1.0.34

func ShouldBind(c *gin.Context, form interface{}) error

func ShouldBindJSON

func ShouldBindJSON(c *gin.Context, form interface{}) error

func ShouldBindQuery

func ShouldBindQuery(c *gin.Context, form interface{}) error

func ShouldBindURI added in v1.0.35

func ShouldBindURI(c *gin.Context, form interface{}) error

Types

type CustomValidation added in v1.2.40

type CustomValidation struct {
	RuleName          string
	ValidatorFunction func(validator.FieldLevel) bool
	CustomRegisFunc   validator.RegisterTranslationsFunc
	CustomTransFunc   validator.TranslationFunc
}

type Validator added in v1.2.40

type Validator struct {
	// contains filtered or unexported fields
}

func NewValidator added in v1.2.40

func NewValidator() *Validator

func (*Validator) Engine added in v1.2.40

func (t *Validator) Engine() interface{}

func (*Validator) Validate added in v1.2.40

func (t *Validator) Validate(field interface{}, rules string) []error

func (*Validator) ValidateStruct added in v1.2.40

func (t *Validator) ValidateStruct(s interface{}) error

Jump to

Keyboard shortcuts

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