xpanic

package
v0.0.0-...-016edcc Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recover

func Recover(f func() error, opts ...Option) error

func RecoverV

func RecoverV[T any](f func() (T, error), opts ...Option) (_ T, err error)

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func Wrap

func Wrap(f func(err any) error) Option

Jump to

Keyboard shortcuts

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