param

package
v0.0.0-...-829dc02 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind[T any](c *gin.Context, param Param, obj T) (T, error)

func BindCSV

func BindCSV(c *gin.Context) ([][]string, error)

func BindForm

func BindForm[T any](c *gin.Context, obj T) (T, error)

func BindJson

func BindJson[T any](c *gin.Context, obj T) (T, error)

func BindQuery

func BindQuery[T any](c *gin.Context, obj T) (T, error)

func BindUri

func BindUri[T any](c *gin.Context, obj T) (T, error)

Types

type Param

type Param int
const (
	Json Param = iota
	Query
	URI
	Form
)

Jump to

Keyboard shortcuts

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