Versions in this module Expand all Collapse all v1 v1.1.0 May 5, 2026 v1.0.0 May 3, 2026 Changes in this version + func GetIDParam(r *http.Request) (int32, error) + func NewError(err error, statusCode int) error + func NewErrorFromMessage(message string, statusCode int) error + func NewErrorFromStatusCode(statusCode int) error + func NewErrorWithFields(err error, statusCode int, fields []FieldError) error + func Respond(w http.ResponseWriter, val any, statusCode int) + func Respond500(w http.ResponseWriter) + func RespondError(w http.ResponseWriter, respErr error) + type Decoder struct + func NewDecoder(log *zap.Logger, cfg *appconf.Cfg) *Decoder + func (d *Decoder) Decode(r *http.Request, val any) error + type Error struct + Err error + Fields []FieldError + StatusCode int + func (e *Error) Error() string + type ErrorResponse struct + Error string + Fields []FieldError + type FieldError struct + Error string + Field string + type Sanitizable interface + Sanitize func() + type Validatable interface + ValidateWith func(v *validation.Validator) (bool, []FieldError)