Documentation ¶ Index ¶ func Logger(logger *slog.Logger) func(http.Handler) http.Handler func Recovery(next http.Handler) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Logger ¶ func Logger(logger *slog.Logger) func(http.Handler) http.Handler Logger middleware creates a handler that logs information about each HTTP request. It logs when a request starts and completes, including details like request ID, method, path, status code, latency, and more. func Recovery ¶ func Recovery(next http.Handler) http.Handler Recovery adapted from https://github.com/go-chi/chi/blob/master/middleware/recoverer.go Types ¶ This section is empty. Source Files ¶ View all Source files logger.gorecover.go Click to show internal directories. Click to hide internal directories.