Documentation
¶
Overview ¶
Package decoder provides request decoding functionality for the context. Feed decoder interface implementation into the context object when you reset it, and it will be used to decode request data.
Typical usage:
dec := decoder.JSON ctx.Reset(..., dec, ...) // ... if err := ctx.Decode(r, &data); err != nil { ctx.BadRequestResponse(nil, err.Error()) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // JSON decoder treats request body as json. JSON = Func(decodeJSON) )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.