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.
Click to show internal directories.
Click to hide internal directories.