panicutil

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallGlobalPanicHook

func InstallGlobalPanicHook(hook func(stackTrace string, err error))

func RecoverFromPanic

func RecoverFromPanic(postPanicHandler func(string, error)) (stackTrace string, err error)

RecoverFromPanic is a helper function to recover from panics. It helps handling the panic consistently with the global recovery hook.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL