Documentation ¶ Index ¶ type ErrorResp func NewErrorResp(status int, msg string) *ErrorResp func (e *ErrorResp) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ErrorResp ¶ type ErrorResp struct { Status int `json:"status"` // HTTP status code with a json tag Msg string `json:"message"` // Human-readable message with a json tag } Simple error response struct with json notation. func NewErrorResp ¶ func NewErrorResp(status int, msg string) *ErrorResp func (*ErrorResp) Error ¶ func (e *ErrorResp) Error() string Implementation func of error interface. Source Files ¶ View all Source files error.go Click to show internal directories. Click to hide internal directories.