safe

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(fn func()) (err error)

Run the function safely knowing that if it panics the panic will be caught and returned as an error

func RunE

func RunE(fn func() error) (err error)

Run the function safely knowing that if it panics the panic will be caught and returned as 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