safe – github.com/markbates/safe Index | Files

package safe

import "github.com/markbates/safe"

Index

Constants

const Version = "v1.0.0"

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

Source Files

safe.go version.go

Version
v1.0.0
Published
Oct 19, 2018
Platform
js/wasm
Imports
2 packages
Last checked
now

Tools for package owners.