iowrapper

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBufferSize = 368

Variables

This section is empty.

Functions

func NewTeeReader

func NewTeeReader(reader io.ReadCloser, writer io.WriteCloser) io.ReadCloser

NewTeeReader creates an instance of ReadCloser for writing data read from the given reader into the given writer.

Types

type ReadCloseTypeParser

type ReadCloseTypeParser interface {
	io.ReadCloser
	ParseFileType() (types.Type, error)
}

func NewReader

func NewReader(in io.ReadCloser) ReadCloseTypeParser

func NewReaderWithBufferSize

func NewReaderWithBufferSize(in io.ReadCloser, bufferSize int64) ReadCloseTypeParser

Jump to

Keyboard shortcuts

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