utils

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHeaderParams

func CheckHeaderParams(name string, v *string, ctx *gin.Context) bool

func CheckHeaderParamsWithErrorMsg

func CheckHeaderParamsWithErrorMsg(name string, v *string, errorMsg string, ctx *gin.Context) bool

func CheckParamsWithErrorMsg

func CheckParamsWithErrorMsg(name string, str string, v *string, errorMsg string, ctx *gin.Context) bool

func CheckPostFormParams

func CheckPostFormParams(name string, v *string, ctx *gin.Context) bool

func CheckPostFormParamsWithErrorMsg

func CheckPostFormParamsWithErrorMsg(name string, v *string, errorMsg string, ctx *gin.Context) bool

func CheckQueryParams

func CheckQueryParams(name string, v *string, ctx *gin.Context) bool

func CheckQueryParamsWithErrorMsg

func CheckQueryParamsWithErrorMsg(name string, v *string, errorMsg string, ctx *gin.Context) bool

func PostFormArray

func PostFormArray(ctx *gin.Context, name string) []string

func QueryArray

func QueryArray(ctx *gin.Context, name string) []string

func SendJSON

func SendJSON(ctx *gin.Context, data interface{})

func ShouldBind

func ShouldBind(ctx *gin.Context, data interface{}) bool

func ShouldBindAndValidate added in v0.0.6

func ShouldBindAndValidate(ctx *gin.Context, data interface{}) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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