csv

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrInvalidHeader

func IsErrInvalidHeader(err error) bool

IsErrInvalidHeader checks if an err is of ErrInvalidHeader type.

func NewCSVFileFormat

func NewCSVFileFormat(schemaName string) fileformat.FileFormat

NewCSVFileFormat creates a FileFormat for CSV.

func NewReader

func NewReader(inputName string, r io.Reader, decl *fileDecl, xpathStr string) (*reader, error)

NewReader creates an FormatReader for CSV file format.

Types

type ErrInvalidHeader

type ErrInvalidHeader string

ErrInvalidHeader indicates the header of the CSV input is corrupted, mismatched, or simply unreadable. This is a fatal, non-continuable error.

func (ErrInvalidHeader) Error

func (e ErrInvalidHeader) Error() string

Jump to

Keyboard shortcuts

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