writers

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package writers provides a set of utilities for writing data to various

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PausableWriter

type PausableWriter struct {
	sync.Mutex
	// contains filtered or unexported fields
}

PausableWriter is a writer that can be paused and resumed.

func NewPausableWriter

func NewPausableWriter(w io.Writer) *PausableWriter

NewPausableWriter creates a new PausableWriter.

func (*PausableWriter) Pause

func (pw *PausableWriter) Pause()

Pause is used to pause the writer.

func (*PausableWriter) Resume

func (pw *PausableWriter) Resume()

Resume is used to resume the writer.

func (*PausableWriter) Write

func (pw *PausableWriter) Write(p []byte) (n int, err error)

Write is the implementation of the io.Writer interface.

Jump to

Keyboard shortcuts

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