pretty

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithPrefix

func WithPrefix(prefix string) func(*Printer)

Types

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

func NewPrinter

func NewPrinter(output io.Writer, opts ...func(*Printer)) *Printer

func (*Printer) CallbackWithPrefix

func (p *Printer) CallbackWithPrefix(prefix string) log.LogFunc

func (*Printer) PrintRawLine

func (p *Printer) PrintRawLine(namePrefix, line string)

func (*Printer) PrintStandardLine

func (p *Printer) PrintStandardLine(namePrefix, level, message string, attrs []slog.Attr)

func (*Printer) WriterInterceptor

func (p *Printer) WriterInterceptor(prefix string) io.Writer

Jump to

Keyboard shortcuts

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