Documentation
¶
Index ¶
- func BindRequestData(ctx *gin.Context, dstObj interface{}) (string, error)
- func MakeRange(min, max int) []int
- func SendError(ctx *gin.Context, response interface{}, err interface{}, statusCode int, ...)
- func SendResponse(ctx *gin.Context, statusCode int, data any, headers map[string]string, ...) (err error)
- func ValidateEmail(email string) bool
- type GinResponseType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindRequestData ¶
Bind request data on interface object
func SendError ¶
func SendError(ctx *gin.Context, response interface{}, err interface{}, statusCode int, messages ...string)
Output an error message
func SendResponse ¶
func ValidateEmail ¶
Types ¶
type GinResponseType ¶
type GinResponseType int32
const ( GinResponseTypes_UNKNOWN GinResponseType = iota GinResponseTypes_JSON GinResponseTypes_NOCONTENT )
Click to show internal directories.
Click to hide internal directories.