Hello,
Try this:
func MustNotPanic() (err error) {
defer func(){
err=recover()
}()
PanicFunction()
}
--
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, se
Hi,
I would like to shield my application from any possible panicking by the
third-party library. There was an occasion when a third party library
crashed my application due to unnecessary panicking. I am thinking
of creating a thin wrapper that will also catch any panic into error. How
can I