CleverGo provides a built-in recovery middleware.
rm := clevergo.Recovery(true) // enable debug mode, it writes stack info to log.
// rm := clevergo.RecoveryLogger(true, log.New(out, prefix, flag)) // specify logger.
router.Use(rm)
CleverGo provides a built-in recovery middleware.
rm := clevergo.Recovery(true) // enable debug mode, it writes stack info to log.
// rm := clevergo.RecoveryLogger(true, log.New(out, prefix, flag)) // specify logger.
router.Use(rm)
本文档使用 BookStack 构建