Documentation
¶
Index ¶
Constants ¶
View Source
const ( SeparatorSegmentDefault = '\'' SeparatorComponentDefault = '+' SeparatorElementDefault = ':' EscapeCharacterDefault = '?' )
Variables ¶
This section is empty.
Functions ¶
func NewEdiTokenReader ¶
func WithComponentSeparator ¶
func WithComponentSeparator(s rune) option
func WithElementSeparator ¶
func WithElementSeparator(s rune) option
func WithEscapeChar ¶
func WithEscapeChar(s rune) option
func WithSegmentSeparator ¶
func WithSegmentSeparator(s rune) option
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component represents a component in an EDI Segment and holds its elements
type EDIReader ¶
type EDIReader struct {
// contains filtered or unexported fields
}
func NewEDIReader ¶
NewEDIReader initializes the EDIReader with EDI input data
func (*EDIReader) PeekSegment ¶
PeekSegment peek the next Segment from the EDI data
func (*EDIReader) ReadSegment ¶
ReadSegment reads the next Segment from the EDI data
type Segment ¶
type Segment struct {
// contains filtered or unexported fields
}
Segment represents a single EDI Segment and holds its components
func (*Segment) ReadComponents ¶
ReadComponents returns list of components in the Segment
Click to show internal directories.
Click to hide internal directories.