Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Processor ¶
type Processor interface {
// called for every cell first in order
Cell(
collector validation.Collector,
col table.ColumnName,
content string,
) (
cleanedContent string, valid bool, err error,
)
// called after all cells of all rows were processed
Row(
collector validation.Collector,
row table.Row,
) (valid bool, err error)
// called in the very end
Table(
collector validation.Collector,
tableValidation *validation.Table,
table *table.Table,
) (valid bool, err error)
}
Processor is an interface, that allows you to validate and transform table data typically from a csv file.
Click to show internal directories.
Click to hide internal directories.