errorpanic

package module
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 2 Imported by: 0

README

errorpanic

errorpanic It is a simple golang wrapper for functions which may panic.

  • Synchronous call.
  • For functions which may return errors.
  • If panic happens, it will be handled as an error with the help of the recover function
  • Error typed panics are supported panic(err)

Installation

Standard go get:

go get github.com/tiny-systems/errorpanic

Usage & Example

err := errorpanic.Wrap(someFuncError)

Please check examples

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(f func() error) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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