zelo

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Writer Logger

Functions

func Assert

func Assert[T comparable](a, b T) (e *Event)

func Colored

func Colored(writer io.Writer, domain ...string) Logger

func ColoredWithT

func ColoredWithT(writer io.Writer, formatT bool, domain ...string) Logger

func EqualHook

func EqualHook[T comparable](a, b T) HookFunc

func ErrHook

func ErrHook(err error) HookFunc

func GreaterHook

func GreaterHook[T cmp.Ordered](a, b T) HookFunc

func Json

func Json(writer io.Writer, domain ...string) Logger

func Less

func Less(a, b float64) (e *Event)

func LessHook

func LessHook(a, b float64) HookFunc

func LessWithLevel

func LessWithLevel(a, b float64, level Level) (e *Event)

func NotEqual

func NotEqual[T comparable](a, b T) (e *Event)

func NotEqualWithLevel

func NotEqualWithLevel[T comparable](a, b T, level Level) (e *Event)

func NotGreater

func NotGreater[T cmp.Ordered](a, b T) (e *Event)

func NotGreaterWithLevel

func NotGreaterWithLevel[T cmp.Ordered](a, b T, level Level) (e *Event)

func OnErr

func OnErr(err error) (e *Event)

func OnErrWithLevel

func OnErrWithLevel(err error, level Level) (e *Event)

func PanicLess

func PanicLess(a, b float64) (e *Event)

func PanicNotGreater

func PanicNotGreater[T cmp.Ordered](a, b T) (e *Event)

func PanicOnErr

func PanicOnErr(err error) (e *Event)

func Plain

func Plain(writer io.Writer, formatT bool, domain ...string) Logger

func PlainWithT

func PlainWithT(writer io.Writer, formatT bool, domain ...string) Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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