filex

package
v1.10.14 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstLine

func FirstLine(filename string) (string, error)

func LastLine

func LastLine(filename string) (string, error)

Types

type OffsetRange

type OffsetRange struct {
	File  string
	Start int64
	Stop  int64
}

func SplitLineChunks

func SplitLineChunks(filename string, chunks int) ([]OffsetRange, error)

type RangeReader

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

func NewRangeReader

func NewRangeReader(file *os.File, start, stop int64) *RangeReader

func (*RangeReader) Read

func (rr *RangeReader) Read(p []byte) (n int, err error)

type Scanner

type Scanner interface {
	Scan() bool
	Text() string
}

func NewProgressScanner

func NewProgressScanner(scanner Scanner, bar *pb.ProgressBar) Scanner

Jump to

Keyboard shortcuts

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