Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilRequest = errors.New("bind: request is nil") ErrNilDestination = errors.New("bind: destination is nil") ErrNotAPointer = errors.New("bind: destination must be a pointer") ErrNotAStruct = errors.New("bind: destination must be a struct") ErrExpectedStruct = errors.New("bind: expected struct") ErrMultipleTags = errors.New("bind: multiple tags") ErrEmptyTag = errors.New("bind: tag is empty") )
Functions ¶
Types ¶
type Error ¶
type Error struct {
Field string // struct field name
Err error // underlying error (conversion, missing tag, etc.)
}
Error represents a failure to bind a single struct field.
type Errors ¶
type Errors struct {
Errors []Error
}
Errors aggregate one or more BindError values. It implements the error interface.
type Opt ¶
type Opt interface {
BindOpt()
}
Opt is a functional option that configures the binder.
func WithMaxFormMemoryMB ¶
func WithValidator ¶
Click to show internal directories.
Click to hide internal directories.