ioutil2

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMultiPassReader

func NewMultiPassReader(r io.Reader, passes int) io.Reader

Types

type ByteWriter

type ByteWriter interface {
	io.Writer
	StringWriter
	io.ByteWriter
	io.ReaderFrom
}

ByteWriter represents efficient io.Writer, that don't need buffering. Implemented by *bufio.Writer and *bytes.Buffer.

type CloserFunc

type CloserFunc func() error

func (CloserFunc) Close

func (f CloserFunc) Close() error

type MultiPassReader

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

func (*MultiPassReader) Read

func (r *MultiPassReader) Read(p []byte) (n int, err error)

func (*MultiPassReader) Unwrap

func (r *MultiPassReader) Unwrap() io.Reader

type NopCloser

type NopCloser struct{}

NopCloser may be embedded to any struct to implement io.Closer doing nothing on closer.

func (NopCloser) Close

func (NopCloser) Close() error

type ReaderFunc

type ReaderFunc func(p []byte) (n int, err error)

func (ReaderFunc) Read

func (f ReaderFunc) Read(p []byte) (int, error)

type ReaderWrapper

type ReaderWrapper interface {
	Unwrap() io.Reader
}

type StringWriter

type StringWriter interface {
	WriteString(s string) (n int, err error)
}

type StringerFunc

type StringerFunc func() string

func (StringerFunc) String

func (f StringerFunc) String() string

type WriterFunc

type WriterFunc func(p []byte) (n int, err error)

func NewCallbackWriter

func NewCallbackWriter(w io.Writer, onWrite func()) WriterFunc

func (WriterFunc) Write

func (f WriterFunc) Write(p []byte) (int, error)

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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