ginx

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindJSON

func BindJSON(c *gin.Context, ptr interface{})

func Bomb

func Bomb(code int, format string, a ...interface{})

func Dangerous

func Dangerous(v interface{}, code ...int)

func Offset

func Offset(c *gin.Context, limit int, pagenoVarName ...string) int

func QueryBool

func QueryBool(c *gin.Context, key string, defaultVal ...bool) bool

func QueryInt

func QueryInt(c *gin.Context, key string, defaultVal ...int) int

func QueryInt64

func QueryInt64(c *gin.Context, key string, defaultVal ...int64) int64

func QueryStr

func QueryStr(c *gin.Context, key string, defaultVal ...string) string

func UrlParamInt

func UrlParamInt(c *gin.Context, field string) int

func UrlParamInt64

func UrlParamInt64(c *gin.Context, field string) int64

func UrlParamStr

func UrlParamStr(c *gin.Context, field string) string

Types

type Render

type Render struct {
	// contains filtered or unexported fields
}

func NewRender

func NewRender(c *gin.Context, code ...int) Render

func (Render) Data

func (r Render) Data(data interface{}, err interface{}, a ...interface{})

func (Render) Message

func (r Render) Message(v interface{}, a ...interface{})

func (Render) ZeroPage

func (r Render) ZeroPage(c *gin.Context)

Jump to

Keyboard shortcuts

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