Recovery

Lunny Xiao edited this page Apr 17, 2015 · 1 revision

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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.