Documentation ¶
Overview ¶
Package crash provides functions for reporting application crashes (uncaught panics).
crash does not offer any sort of global crash recovery mechanism.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Crash ¶
func Crash(e interface{})
Crash invokes each of the registered crash reporters with e, then panics with e.
Types ¶
type Reporter ¶
type Reporter func(e interface{}, s stacktrace.Callstack)
Reporter is a function that reports an uncaught panic that will crash the application.
Click to show internal directories.
Click to hide internal directories.