package
1.1.1
Repository: https://github.com/mdanialr/pwman_backend.git
Documentation: pkg.go.dev

# Functions

Error return json response with standard error response as the structure.
ErrorCode return json response with standard error response as the structure and additionally set the response status code.
NewValidationErrors return ready to display error validations.
Success return json response with standard success response as the structure.
WithData option to add the given data to success response as `data` field.
WithErr option to add given error message to error response as `message` field.
WithErrCode option to add given code to error response as `code` field.
WithErrDetail option to add given detail to error response as `detail` field.
WithErrMsg option to add given message to error response as `message` field.
WithErrValidation option to add given valid to error response as `detail` field.
WithMeta option to add the given meta to success response as `meta` field.
WithMsg option to add given msg to success response as `message` field.

# Type aliases

AppErrorOption an option for error response.
SuccessOption an option for success response.