Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FormDecoder is used to decode url.Values in the DecodeForm. FormDecoder = form.NewDecoder() // Validator is used both for JSON and Form validation. Validator = validator.New(validator.WithRequiredStructEnabled()) )
Functions ¶
func DecodeForm ¶
DecodeForm converts a url.Values (including form values) from the incoming request r into the struct v.
The decoded struct is validated with the Validator.
Use validation tags from the github.com/go-playground/validator/v10 for setting validation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.