Documentation ¶
Index ¶
- Constants
- func DecodeJSONBody(w http.ResponseWriter, r *http.Request, dst interface{}) error
- func HasFormData(r *http.Request) bool
- func In(ctx Ctx, inputStruct any, opts ...core.Option) error
- func ParseInput(ctx Ctx, inputStruct any, opts ...core.Option) error
- func WantsHTML(r *http.Request) bool
- func WantsJSON(r *http.Request) bool
- type Ctx
- type MalformedRequest
- type Validator
Constants ¶
View Source
const InKey = "input"
Variables ¶
This section is empty.
Functions ¶
func DecodeJSONBody ¶
func DecodeJSONBody(w http.ResponseWriter, r *http.Request, dst interface{}) error
func HasFormData ¶
Types ¶
type MalformedRequest ¶
func (*MalformedRequest) Error ¶
func (mr *MalformedRequest) Error() string
Click to show internal directories.
Click to hide internal directories.