package
1.0.217
Repository: https://github.com/9spokes/go.git
Documentation: pkg.go.dev

# Functions

ErrorResponse sends a standardised error message body to the caller in the form of { "status": "err", "message": "<your error message>"} code should be a valid 4xx-5xx error status code.
Sends a standardised error message body to the caller in the form of { "status": "err", "message": "<your error message>" correlationId: "<corrId>"}.
SuccessResponse sends a standardised success message body to the caller in the form of { "status": "ok", "details": "<your data>"}.
SuccessResponse sends a standardised success message body to the caller in the form of { "status": "ok", "details": "<your data>"}.
SuccessResponse sends a standardised success message body to the caller in the form of { "status": "ok", "details": "<your data>"} statusCode should be a valid 2xx http status.

# Structs

Response is an API response message envelope.