stream

package
v2.41.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputStreamer

type InputStreamer struct {
	IgnoreEmptyLines bool
	Buffer           *bufio.Reader
}

InputStreamer an input streamer which breaks down a buffer into input values

func (*InputStreamer) Read

func (r *InputStreamer) Read() (output []byte, err error)

Read reads the next delimited value (either text or JSON object)

func (*InputStreamer) ReadJSONObject

func (r *InputStreamer) ReadJSONObject() ([]byte, error)

ReadJSONObject read the next JSON object

func (*InputStreamer) ReadLine

func (r *InputStreamer) ReadLine() ([]byte, error)

ReadLine reads the next chunk of text until the next newline char

Jump to

Keyboard shortcuts

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