utils

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeferredWriter

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

DeferredWriter buffers all writes in memory until Flush is called. Safe for concurrent use.

func (*DeferredWriter) Flush

func (d *DeferredWriter) Flush(w io.Writer) error

Flush writes all buffered data to w and clears the buffer.

func (*DeferredWriter) Write

func (d *DeferredWriter) Write(p []byte) (n int, err error)

Write stores data in the internal buffer.

Jump to

Keyboard shortcuts

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