e

package
v0.0.0-...-14b6000 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrapper

func Wrapper(msg string, err error) error

The Wrapper function is needed to catch the error message inside your function. To be intercepted, your function must have a named output characteristic of type error, such as `func myFunc() err error` For simple hooking, you need to start your function with defer `func() { e.Wrapper("Your msg", err, nil) }` Now you can simply return an error like this `return nil` or `return err`, the error will be caught and formatted as needed, including being written to the log

Types

This section is empty.

Jump to

Keyboard shortcuts

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