Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFinishLine ¶
func IsStartLine ¶
Types ¶
type BlockWriter ¶ added in v0.3.0
type Reader ¶
type Reader struct {
FileName string
Log *logrus.Logger
//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
//options
ReadOnly bool
FixFinishLines bool
//callbacks
LineRead func(*Reader, int, string) error
BlockRead func(*Reader, int, string) error
// Only used by the "blocks" command
BlockWriter BlockWriter
}
Click to show internal directories.
Click to hide internal directories.