Hi Jerome,
Unfortunately, by design, go does not provide a way to recover from panics across goroutines. recovers only work within a goroutine. So there’s currently no way to do what you are asking for.
You would need to redesign your app to propagate recovers each time a new goroutine is spawned. If you have a crud app with http middleware, this may not be as hard as you might think.
Joe