Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

panictoerr source pure

Functions 3

func AbortToError

1func AbortToError(mightAbort func()) error
source

AbortToError executes a function that might abort, and if it does, revives the abort and converts it to an error.

func PanicAbortToError

1func PanicAbortToError(mightPanicOrAbort func()) error
source

PanicAbortToError executes a function that might either panic or abort, and if it does, it recovers the panic or revives the abort and converts it to an error.

func PanicToError

1func PanicToError(mightPanic func()) (err error)
source

PanicToError executes a function that might panic and, if it does, recovers the panic and converts it to an error.

Imports 2

Source Files 3