line

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2014 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 {
	ReadRaw(p []byte) (int, 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) ReadRaw

func (self *Reader) ReadRaw(p []byte) (n int, 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