stream

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SeekableReader

func SeekableReader(reader io.Reader) (io.ReadSeeker, error)

SeekableReader takes an io.Reader and returns an io.ReadSeeker relative to the current position of the reader. Users of this function expect to be able to reset the reader to the current position, not potentially reset the reader prior to the location when this reader is provided. An example is a reader with multiple JSON documents separated by newlines (JSONL). After reading the first document, if a call is made to decode the second and Seek(0, SeekStart) is called it would reset the overall reader back to the first document.

Types

This section is empty.

Jump to

Keyboard shortcuts

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