log

package
v0.0.0-...-869b69f Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Unlicense Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error = func(err error, fmtStr string, args ...any) (shouldReturn bool) {
		if err == nil {
			return false
		}
		fmt.Printf("ERROR: "+fmtStr+"\n       %s\n", append(args, err)...)
		return true
	}
	Panic = func(fmtStr string, args ...any) {
		panic(fmt.Sprintf(fmtStr+"\n", args...))
	}
)

Functions

func SetFns

func SetFns(fnError ErrorFunc, fnPanic PanicFunc)

Types

type ErrorFunc

type ErrorFunc func(err error, fmtStr string, args ...any) (shouldReturn bool)

type PanicFunc

type PanicFunc func(fmtStr string, args ...any)

Jump to

Keyboard shortcuts

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