ioutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiReadCloser

type MultiReadCloser struct {
	io.Reader
	// contains filtered or unexported fields
}

func NewMultiReadCloser

func NewMultiReadCloser(rcs []io.ReadCloser) *MultiReadCloser

func (*MultiReadCloser) Close

func (mrc *MultiReadCloser) Close() error

type PositionTrackerReader

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

PositionTrackerReader is an `io.Reader` that tracks the current read position in an underlying `io.Reader`

func NewPositionTrackerReader

func NewPositionTrackerReader(r io.Reader) *PositionTrackerReader

NewPositionTrackerReader creates a new PositionTrackerReader with the initial position set to 0.

func (*PositionTrackerReader) CurrentPos

func (p *PositionTrackerReader) CurrentPos() int64

CurrentPos is the current position of the PositionTrackerReader

func (*PositionTrackerReader) Read

func (p *PositionTrackerReader) Read(b []byte) (int, error)

Read reads from the PositionTrackerReader into the provided byte slice. The number position of the PositionTrackerReader is updated based on the number of bytes read

type SectionReadCloser

type SectionReadCloser struct {
	*io.SectionReader
	// contains filtered or unexported fields
}

func NewSectionReadCloser

func NewSectionReadCloser(r *io.SectionReader, c io.Closer) *SectionReadCloser

func (*SectionReadCloser) Close

func (src *SectionReadCloser) Close() error

Jump to

Keyboard shortcuts

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