linereader

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBinaryContent = errors.New("Cannot read binary content")

ErrBinaryContent is returned when attempting to read lines out of a stream that does not look like text

Functions

func GetLines

func GetLines(r io.Reader) ([]string, error)

Types

type LineReader

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

func NewLineReader

func NewLineReader(reader io.Reader) *LineReader

func (*LineReader) GetLines

func (lr *LineReader) GetLines() ([]string, error)

func (*LineReader) Read

func (lr *LineReader) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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