linereader

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2016 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineReader

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

Fake Reader that can 'unread' a complete line

func ByteReader

func ByteReader(str string) *LineReader

For testing

func OpenReader

func OpenReader(filename string) (*LineReader, error)

func (*LineReader) Close

func (r *LineReader) Close()

func (*LineReader) Read

func (r *LineReader) Read(p []byte) (l int, err error)

func (*LineReader) ReadLine

func (r *LineReader) ReadLine() (line []byte, isPrefix bool, err error)

func (*LineReader) UnreadLine

func (r *LineReader) UnreadLine(str string)

Jump to

Keyboard shortcuts

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