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 ¶
IsErrInvalidEDI checks if an err is of ErrInvalidEDI type.
func NewEDIFileFormat ¶
func NewEDIFileFormat(schemaName string) fileformat.FileFormat
NewEDIFileFormat creates a FileFormat for EDI.
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
Click to show internal directories.
Click to hide internal directories.