line

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2015 License: BSD-2-Clause Imports: 3 Imported by: 2

Documentation

Overview

Package to read and index lines of a file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineReader

type LineReader interface {
	ReadLine() ([]byte, error)
	GetReadOffset() (int, error)
}

func NewReader

func NewReader(f file.SectionReader) LineReader

type Reader

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

func (*Reader) GetReadOffset

func (self *Reader) GetReadOffset() (n int, err error)

Read a single line and return the offset for indexing.

func (*Reader) ReadLine added in v0.8.8

func (self *Reader) ReadLine() (p []byte, err error)

Read a single line and return it or an error.

Jump to

Keyboard shortcuts

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