iowriters

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressWriter

type ProgressWriter struct {
	Total      int
	OnProgress ProgressWriterFunc
}

func NewProgressWriter

func NewProgressWriter(total int, onProgress ProgressWriterFunc) *ProgressWriter

func (*ProgressWriter) Write

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

type ProgressWriterFunc

type ProgressWriterFunc = func(progressIncrementAmount float64)

type StdioWriter

type StdioWriter struct {
	OnWrite StdioWriterFunc
}

func NewStdioWriter

func NewStdioWriter(onWrite StdioWriterFunc) *StdioWriter

func (*StdioWriter) Write

func (sw *StdioWriter) Write(p []byte) (n int, err error)

type StdioWriterFunc

type StdioWriterFunc = func(message string)

Jump to

Keyboard shortcuts

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