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 ¶
Click to show internal directories.
Click to hide internal directories.