Documentation ¶ Index ¶ func GinOutputErr(c *gin.Context, service string, err error) func OutputErr(w http.ResponseWriter, err error) type ApiError func New(status int, msg string) ApiError func NewWithKey(status int, msg string, key string) ApiError Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GinOutputErr ¶ func GinOutputErr(c *gin.Context, service string, err error) func OutputErr ¶ func OutputErr(w http.ResponseWriter, err error) Types ¶ type ApiError ¶ type ApiError interface { GetStatus() int GetErrorKey() string GetErrorMsg() string error } func New ¶ func New(status int, msg string) ApiError func NewWithKey ¶ func NewWithKey(status int, msg string, key string) ApiError Source Files ¶ View all Source files err.go gin.go Click to show internal directories. Click to hide internal directories.