readerutils

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainedCloser

func ChainedCloser(this io.ReadCloser, other io.Closer) io.ReadCloser

func WriterToReader

func WriterToReader(reader io.Reader, writerSource func(writer io.Writer) io.WriteCloser) io.Reader

WriterToReader transforms an io.Writer that is provided by the given function into an io.Reader.

Types

type CloserFunc

type CloserFunc func() error

CloserFunc is the basic Close method defined in io.Closer.

func (CloserFunc) Close

func (fn CloserFunc) Close() error

Close performs close operation by the CloserFunc.

Jump to

Keyboard shortcuts

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