debug

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config struct {
	Enabled bool
}

Config is a global debug configuration.

View Source
var NopLogger = &nopLogger{}

Functions

func Log

func Log(args ...interface{})

func Logf

func Logf(format string, args ...interface{})

func SetLogger

func SetLogger()

func SetTestLogger

func SetTestLogger(t *testing.T)

Types

type Logger

type Logger interface {
	Logf(format string, args ...interface{})
	Log(args ...interface{})
}

func NewLogger

func NewLogger(out io.Writer) Logger

func NewTestLogger

func NewTestLogger(t *testing.T) Logger

Jump to

Keyboard shortcuts

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