Versions in this module Expand all Collapse all v1 v1.0.4 Feb 6, 2024 Changes in this version + type Data map[string]interface v1.0.3 Jan 25, 2024 v1.0.2 Jan 25, 2024 Changes in this version + var Validate = validator.New() + func End(w http.ResponseWriter, code int) + func JSON(w http.ResponseWriter, code int, data interface{}) + type Cause struct + Field string + Message string + type Err struct + Causes []Cause + Code int + Err string + Message string + func Bind(src io.ReadCloser, dst interface{}) *Err + func NewBadRequestErr(message string, causes []Cause) *Err + func NewErr(message, err string, code int, causes []Cause) *Err + func NewForbiddenErr(message string) *Err + func NewInternalServerErr(message string) *Err + func NewNotFoundErr(message string) *Err + func NewUnauthorizedErr() *Err + func ValidateStructErr(err error) *Err + func ValidateVarErr(name string, err error) *Err + func (r *Err) Error() string v1.0.1 Jan 25, 2024 v1.0.0 Jan 25, 2024