panicutil

package
v0.1.607 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func F

func F(err error)

F panics if err is non-nil, wrapping it in a structured fatal error.

func Trap added in v0.1.302

func Trap(exit bool)

Trap recovers from panics and logs the error. If exit is true, the program will terminate.

func TrapF

func TrapF()

TrapF is a shorthand for Trap(true), used at startup to abort on panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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