binder

package
v2.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL