rescueutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recover

func Recover(errHandler func(err any), cleanups ...func())

Recover from panic Usage:

	func main() {
		defer rescueutil.Recover(func(err any) {
	        fmt.Printf("Recover error: %v \n", err)
		},func() {
			...
		})
		...
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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