errs

package
v0.0.0-...-71c6276 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogHandler = func(message string) {
	log.Println(message)
}

LogHandler is a generic log handler - could be overridden

Functions

func Log

func Log(err error, handlers ...func(string))

Log prints the error into provided handler. If no handler provided, LogHandler is used

func Wrap

func Wrap(err error, format string, a ...interface{}) error

Wrap wraps error with an extra format

Types

This section is empty.

Jump to

Keyboard shortcuts

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