Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EOF denotes the end of a file. EOF token = iota // EOL denotes the end of a Line. EOL // WS denotes any whitespace except EOF and EOL. WS // CRC denotes a crc24 checksum. CRC // DATA denotes the zbase32 encoded payload data. DATA // LINO denotes a Line number. LINO // DESC denotes any other type of text. DESC )
View Source
const Name = "text"
Name holds the name of the format.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Format ¶
type Format struct { LineLength uint8 // contains filtered or unexported fields }
Format represents the text type format.
func (*Format) OutputFileName ¶
OutputFileName returns the file name for the given x.
type Line ¶
type Line struct { // N holds the line number. N uint64 // Data holds the data payload part of the line. Data string // CRC holds the lines checksum or if data is nil, for the whole document. CRC uint32 }
Line represents a parsed data Line.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents the text parser.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner represents the lexical text scanner.
func NewScanner ¶
NewScanner returns a new instance of Scanner.
Click to show internal directories.
Click to hide internal directories.