buffer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 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 {
	// contains filtered or unexported fields
}

func NewBuffer

func NewBuffer(timeFmt string, col *color.Color, tsStart time.Time, symbolSet common.SymbolSet, uptimeFmt common.UptimeFormat, attrsMode common.AttrsMode, replaceAttr common.ReplaceAttr) *Buffer

func (*Buffer) Len added in v0.2.0

func (b *Buffer) Len() int

func (*Buffer) PushAttr

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

func (*Buffer) PushAttrBuiltin added in v0.7.0

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

func (*Buffer) PushLevel

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

func (*Buffer) PushMessage

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

func (*Buffer) PushSource

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

func (*Buffer) PushTime

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

func (*Buffer) PushUptime

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

func (*Buffer) WriteTo added in v0.2.0

func (b *Buffer) WriteTo(w io.Writer) (n int64, err error)

Jump to

Keyboard shortcuts

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