Documentation ¶ Index ¶ func ERROR(c *gin.Context, code int, message string) func Exception() gin.HandlerFunc func Fatal(c *gin.Context, message string) func RespJson(c *gin.Context, code int, message string, data interface{}) func Success(c *gin.Context, data interface{}) type Resp Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ERROR ¶ added in v1.7.0 func ERROR(c *gin.Context, code int, message string) func Exception ¶ func Exception() gin.HandlerFunc func Fatal ¶ added in v1.7.0 func Fatal(c *gin.Context, message string) func RespJson ¶ func RespJson(c *gin.Context, code int, message string, data interface{}) func Success ¶ func Success(c *gin.Context, data interface{}) Types ¶ type Resp ¶ type Resp struct { Code int `json:"code"` Message string `json:"message"` Data interface{} `json:"data"` } Source Files ¶ View all Source files reponse.go Click to show internal directories. Click to hide internal directories.