Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
Middleware is a function that wraps an http.Handler with additional functionality.
func LoggingMiddleware ¶
func LoggingMiddleware(logger *slog.Logger) Middleware
LoggingMiddleware wraps the handler, logs the request and response, and writes the response to the client.
Click to show internal directories.
Click to hide internal directories.