1 Recovery
Lunny Xiao edited this page 2015-04-17 16:32:12 +08:00

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.