Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wrapper ¶
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.
Click to show internal directories.
Click to hide internal directories.