package
0.0.0-20240927182512-c025dfcef6ca
Repository: https://github.com/edcamero/api-go.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
Fail will send the status code, write the error's reason and return the HTTPError for further use, i.e logging, see `InternalServerError`.
FailJSON will send to the client the error data as JSON.
No description provided by the author
No description provided by the author
No description provided by the author
InternalServerError logs to the server's terminal and dispatches to the client the 500 Internal Server Error.
InternalServerErrorJSON acts exactly like `InternalServerError` but instead it sends the data as JSON.
LogFailure will print out the failure to the "logger".
No description provided by the author
RuntimeCallerStack returns the app's `file:line` stacktrace to give more information about an error cause.
No description provided by the author
UnauthorizedJSON sends JSON format of StatusUnauthorized(401) HTTPError value.
No description provided by the author
# Variables
No description provided by the author