Documentation
¶
Index ¶
- Constants
- func BindAs[T any](c *gin.Context, binder func(any) error) (T, bool)
- func BindAsError[T any](c *gin.Context, binder func(any) error) (T, error)
- func BindInto(c *gin.Context, binder func(any) error, dst any) bool
- func BindIntoWithError(c *gin.Context, binder func(any) error, dst any) error
- func Error(c *gin.Context, code int, msg string)
- func ErrorWithData(c *gin.Context, code int, msg string, data any)
- func Success(c *gin.Context, data any, msg ...string)
- type Body
Constants ¶
View Source
const ( CodeOK = 200 CodeBadRequest = -401 CodeNotFound = 404 CodeServerError = 500 )
Variables ¶
This section is empty.
Functions ¶
func BindIntoWithError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.