Versions in this module Expand all Collapse all v0 v0.1.1 Jun 3, 2021 v0.1.0 Jun 3, 2021 Changes in this version + var ErrBadRequest = New(http.StatusText(http.StatusBadRequest)).WithCode(http.StatusBadRequest) + var ErrInternal = New(http.StatusText(http.StatusInternalServerError)).WithCode(http.StatusInternalServerError) + type Error struct + Code int + Msg string + func New(msg string) *Error + func (e *Error) Error() string + func (e *Error) MarshalJSON() ([]byte, error) + func (e *Error) Unwrap() error + func (e *Error) WithCode(code int) *Error + func (e *Error) Wrap(err error) *Error