Versions in this module Expand all Collapse all v0 v0.2.0 Nov 20, 2023 v0.1.0 Nov 19, 2023 Changes in this version + func AddErrorMessage(k string, v func(validator.FieldError) string) + func NewValidationErrors(validations validator.ValidationErrors) []validationError + type AppError struct + Code string + Error any + Message string + type AppErrorOption func(*AppError) + func WithErr(err error) AppErrorOption + type AppSuccess struct + Data any + Message string + Pagination any + type AppSuccessOption func(*AppSuccess) + func WithData(data any) AppSuccessOption + func WithPaginate(paginate any) AppSuccessOption + type Std struct + Code string + Message string + func NewStd(code, msg string) *Std + func (e Std) Error() string + func (e Std) String() string