line

package
v0.9.21 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: BSD-2-Clause Imports: 3 Imported by: 8 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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