package
0.0.0-20250204142229-6bf38ef5e1a0
Repository: https://github.com/raythx98/gohelpme.git
Documentation: pkg.go.dev

# Functions

AddRequestId adds a request ID to the request context if it doesn't already exist.
No description provided by the author
Chain is a variadic function that takes a Handler and a list of functions that return a Handler.
CORS adds the necessary headers to allow CORS requests.
ErrorHandler handles errors and returns the appropriate response.
Example is a simple example of how middleware can be used to wrap the request handling logic.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JsonResponse adds the application/json content type to the response header.
Log is a middleware that logs the request and response to the logger.
Recoverer recovers from panics and returns a 500 Internal Server Error.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author