package
0.1.5
Repository: https://github.com/andreejait/go-utility.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
ErrBadRequest creates a new error response representing a bad request (HTTP 400).
ErrForbidden creates a new error response representing an authorization failure (HTTP 403).
ErrInternalServerError creates a new error response representing an internal server error (HTTP 500).
ErrNotFound creates a new error response representing a resource not found (HTTP 404).
ErrSessionExpired creates a new error response representing an session expired error.
No description provided by the author
No description provided by the author
Success responses with JSON format-responseMsg.
SuccessCreated returns code 201.
SuccessOK returns code 200.

# Variables

No description provided by the author

# Structs

ErrorResponse is the response that represents an error.
Response struct.

# Type aliases

Data is an alias for map.
No description provided by the author