edi

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ReaderBufSize is the default buf size for EDI reader. Making it too small might increase
	// mem-alloc and gc; making it too big increases the initial memory consumption footprint
	// (unnecessarily) for each reader creation which eventually leads to gc as well. Make it
	// exported so caller can experiment and set their optimal value.
	ReaderBufSize = 128
)

Functions

func IsErrInvalidEDI

func IsErrInvalidEDI(err error) bool

IsErrInvalidEDI checks if an err is of ErrInvalidEDI type.

func NewEDIFileFormat

func NewEDIFileFormat(schemaName string) fileformat.FileFormat

NewEDIFileFormat creates a FileFormat for EDI.

func NewReader

func NewReader(inputName string, r io.Reader, decl *fileDecl, targetXPath string) (*ediReader, error)

NewReader creates an FormatReader for EDI file format.

Types

type ErrInvalidEDI

type ErrInvalidEDI string

ErrInvalidEDI indicates the EDI content is corrupted. This is a fatal, non-continuable error.

func (ErrInvalidEDI) Error

func (e ErrInvalidEDI) Error() string

Jump to

Keyboard shortcuts

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