package
5.0.4+incompatible
Repository: https://github.com/toggly/go-utils.git
Documentation: pkg.go.dev
# Functions
ErrBadRequest func.
ErrConflict func.
ErrInternalServer func.
ErrNotFound func.
ErrorResponse creates {error: message} json body and responds with error code.
ErrorResponseWithFields creates error with props.
ErrorResponseWithStatus creates {error: message} json body and responds with error code.
ForbiddenResponse creates empty json body and responds with 403 code.
JSONResponse creates json body.
NotFoundResponse creates empty json body and responds with 404 code.
UnauthorizedResponse creates empty json body and responds with 401 code.
# Constants
ContextLoggerKey key.
# Structs
ErrStatusedResponse type.