Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomBinder ¶
type CustomBinder struct{}
CustomBinder is an implementation of the Binder interface which only decodes JSON body and disallow unknow JSON fields.
func (*CustomBinder) Bind ¶
func (cb *CustomBinder) Bind(i interface{}, c echo.Context) (err error)
Bind implements the `Echo#Binder#Bind` function. It only decodes the JSON body for now. Extends it if you also need path or query params. Please reference the Echo#Binder to check how to do it.
Click to show internal directories.
Click to hide internal directories.