util

package
v0.0.0-...-31c1c1e Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultQuery

func DefaultQuery(c echo.Context, name, defValue string) string

func PathParam

func PathParam(c echo.Context, name string) string

func PathWildcardParam

func PathWildcardParam(c echo.Context) string

func ShouldBindJSON

func ShouldBindJSON(c echo.Context, obj interface{}) error

ShouldBindJSON binds the body data of the request to the given object. An error is returned if the body data is not valid JSON or the validation of the unmarshalled data failed.

func ShouldBindJSONValidation

func ShouldBindJSONValidation(c echo.Context, obj interface{}, validate bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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