delimited

package
v0.0.0-...-54282bc Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 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 NewDelimitedFileFormat

func NewDelimitedFileFormat(schemaName string) fileformat.FileFormat

NewDelimitedFileFormat creates a FileFormat for delimited files (such as CSV/TSV/etc) for omni.2.0 schema handler.

func NewReader

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

NewReader creates an FormatReader for CSV file format for omniv2 schema handler.

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