Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Recovery ¶
Recovery provides a deferrable func that can be called to recover from, and log context about, crashes. If an error is returned, then a panic recovery occurred.
Call it as follows:
defer func() { if crErr := crash.Recovery(ctx, recover()); crErr != nil { err = crErr // err needs to be a named return variable } }()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.