Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binder ¶
type Binder struct {
// contains filtered or unexported fields
}
Binder binds request data, normalizes it, applies defaults, and validates the result.
type ValidationMessenger ¶
ValidationMessenger optionally supplies feature-specific field messages on a request type. Field is the JSON field name and rule is the failed validator tag. Return an empty string to use the binder's shared message. Messages appear next to the field, so they should explain how to fix it without repeating its name.
Click to show internal directories.
Click to hide internal directories.