title: Generic panic recovering in go programs
body: <p>I’m trying to catch crashes/panics from go routines that are created in my program, in order to send them to my crash-error-reporting server (such as Sentry/Raygun)</p>
  
  <p>For example,</p>
  
  <pre><code>func main() {
  
      go func() {
          // Get this panic
          panic("Go routine panic")
      }()
  }
  </code></pre>
  
  <p><a href="https://stackoverflow.com/a/47808431/11532710">The answer</a> states a goroutine cannot recover from a panic in another goroutine.</p>
  
  <p>What would be the idiomatic way to go about it?</p>