debug

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDebug

func IsDebug(level DebugLevel) bool

func IsError

func IsError(level DebugLevel) bool

func IsWarn

func IsWarn(level DebugLevel) bool

Types

type DebugLevel

type DebugLevel int8
const (
	NoDebug DebugLevel = iota
	Debug
	Warn
	Error
)

type DebugWithPrefix

type DebugWithPrefix struct {
	Level  DebugLevel
	Prefix string
}

func NewDebugWithPrefix

func NewDebugWithPrefix(level DebugLevel, prefix string) *DebugWithPrefix

func (*DebugWithPrefix) String

func (d *DebugWithPrefix) String() string

Jump to

Keyboard shortcuts

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