Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Recovery ¶
func Recovery(opts ...Option) app.HandlerFunc
Recovery returns a middleware that recovers from any panic. By default, it will print the time, content, and stack information of the error and write a 500. Overriding the Config configuration, you can customize the error printing logic.
Types ¶
type Option ¶ added in v0.4.0
type Option func(o *options)
func WithRecoveryHandler ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.