This was proposed and rejected. See the proposal for the details and how to get the behavior you desire: https://github.com/golang/go/issues/16542
On Saturday, February 25, 2017 at 11:44:54 AM UTC-8, Manlio Perillo wrote: > > Well, what's wrong with something like a RecoverPanic bool field in the > Server struct? > > Manlio > > Il giorno sabato 25 febbraio 2017 20:36:34 UTC+1, Matt Harden ha scritto: >> >> I believe it's already been admitted to have been a mistake, and I don't >> know why we haven't created an option to turn it off (maybe because >> "Options Are Badâ„¢"). >> >> On Sat, Feb 25, 2017 at 11:02 AM Manlio Perillo <manlio....@gmail.com> >> wrote: >> >>> I'm starting to use Go for the development of my web applications, but I >>> can not help but feel anxious about the fact that the HTTP server recovers >>> from a panic. >>> I run my applications behind Systemd (and behind Nginx) so I prefer the >>> application to terminate instead of continuing in a possible inconsistent >>> state. >>> >>> Are there any plans to add an option to disable recovering, and instead >>> re-panic after the error has been logged? >>> >>> >>> Thanks >>> Manlio >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "golang-nuts" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to golang-nuts...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.