Documentation ¶
Rendered for js/wasm
Overview ¶
Package catch runs functions and returns panic values as errors instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Try ¶
Try runs fn and returns the result. If fn panicked, the panic value is returned as an error instead.
func TrySideEffect ¶
func TrySideEffect(fn func()) (err error)
TrySideEffect is like Try, but does not have a return value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.