datasource

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvError

type CsvError struct {
	Row     int
	Column  int
	Message string
}

CsvError represents a error in a CSV source. It is defined by Row, Column and a human-readable Message.

func ValidateCSV

func ValidateCSV(input io.Reader, options Validator) ([]CsvError, error)

ValidateCSV performs a CSV validation

type Validator

type Validator struct {
	ColSeparator rune
	MaxErrors    int
}

Validator configures the CSV datasource validator

Jump to

Keyboard shortcuts

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