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 converts panics to a sanitized problem response. Request bodies are deliberately never dumped because they can contain credentials. Types ¶ This section is empty. Source Files ¶ View all Source files logger.gorecover.go Click to show internal directories. Click to hide internal directories.