panicerr

package
v0.0.0-...-381f291 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Safe

func Safe(fn func() error) func() error

Safe wraps a function that returns an error, catching any panics and returning them as an error.

func SafeContext

func SafeContext(fn func(context.Context) error) func(context.Context) error

SafeContext wraps a function that takes a context and returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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