Versions in this module Expand all Collapse all v0 v0.2.0 Jul 30, 2021 Changes in this version + func DecodeJSONBody(w http.ResponseWriter, r *http.Request, dst interface{}) error + func IsShutdown(err error) bool + func NewRequestError(err error, status int) error + func NewShutdownError(message string) error + func RespondError(ctx context.Context, log *zap.SugaredLogger, w http.ResponseWriter, err error) + func RespondJSON(ctx context.Context, log *zap.SugaredLogger, w http.ResponseWriter, ...) + func RespondText(ctx context.Context, log *zap.SugaredLogger, w http.ResponseWriter, ...) + type Error struct + Err error + Fields []FieldError + Status int + func (err *Error) Error() string + type ErrorResponse struct + Error string + Fields []FieldError + type FieldError struct + Error string + Field string v0.1.0 May 20, 2021