Documentation ¶
Overview ¶
Package recovering implements a middleware for recovering from panics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Middleware is a middleware for recovering from panics.
func WithStackTrace ¶
func WithStackTrace() func(*Options)
WithStackTrace configures whether to dump the stack trace after recovering. See the GOTRACEBACK environment variable (https://pkg.go.dev/runtime#hdr-Environment_Variables) on how to configure the stack trace level.
Types ¶
Click to show internal directories.
Click to hide internal directories.