buffer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	*bytes.Buffer
	// contains filtered or unexported fields
}

func NewBuffer

func NewBuffer(timeFmt string, col *color.Color, tsStart time.Time, groups []string) *Buffer

func (*Buffer) Printf

func (b *Buffer) Printf(format string, a ...any)

func (*Buffer) PushAttr

func (b *Buffer) PushAttr(attr slog.Attr)

func (*Buffer) PushLevel

func (b *Buffer) PushLevel(l slog.Level)

func (*Buffer) PushMessage

func (b *Buffer) PushMessage(r slog.Record)

func (*Buffer) PushSource

func (b *Buffer) PushSource(s *slog.Source, l *slog.Level)

func (*Buffer) PushTime

func (b *Buffer) PushTime(r slog.Record)

func (*Buffer) PushUptime

func (b *Buffer) PushUptime(r slog.Record)

func (*Buffer) Release

func (b *Buffer) Release()

Jump to

Keyboard shortcuts

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