1 Recovery
Lunny Xiao edited this page 8 years ago


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))

The param of Recovery will determine whether show call stack info.

Table of Contents