1
Recovery
Lunny Xiao edited this page 7 years ago
Recovery
Recovery middleware can check panic's ocurration. And will keep web server not crash. It is a default middleware if you use Classic
.
t := tango.New(tango.Recovery(true))
t.Run()
The param of Recovery
will determine whether show call stack info.