blocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFinishLine

func IsFinishLine(line string) bool

func IsStartLine

func IsStartLine(line string) bool

func ReaderIgnore

func ReaderIgnore(br *Reader, number int, line string) error

func ReaderPassthrough

func ReaderPassthrough(br *Reader, number int, line string) error

Types

type Reader

type Reader struct {
	FileName string

	//io
	Reader io.Reader
	Writer io.Writer

	//stats
	LineCount        int // total lines processed
	LinesBlock       int // total block lines processed
	BlockCount       int // total blocks found
	BlockCurrentLine int // current block line count

	ErrorBlocks int

	ReadOnly bool

	//callbacks
	LineRead  func(*Reader, int, string) error
	BlockRead func(*Reader, int, string) error
}

func (*Reader) DoTheThing

func (br *Reader) DoTheThing(filename string) error

Jump to

Keyboard shortcuts

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