Versions in this module Expand all Collapse all v1 v1.0.1 Aug 31, 2023 Changes in this version + func GinError(c *gin.Context, err error) + func GinSuccess(c *gin.Context, data any) + func HttpError(w http.ResponseWriter, err error) + func HttpSuccess(w http.ResponseWriter, data any) + type ApiFormat interface + ApiFormat func() + type ApiResponse struct + Data any + ErrCode int + ErrDlt string + ErrMsg string + func ApiSuccess(data any) *ApiResponse + func ParseError(err error) *ApiResponse