edi

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SystemMaxItemCount = 10000
)

Variables

View Source
var (
	ErrEdiComponentElementIncorrectLocation = errors.New("edi component or element must be within a segment")
	ErrArrayRequiresItem                    = errors.New("array's must contain the item property")
	ErrSystemMaxItemCountExceeded           = errors.New("maximum array item count exceeded")
)

Functions

func Marshal

func Marshal(schema *model.Schema, input map[string]any) ([]byte, error)

func Unmarshal

func Unmarshal(schema *model.Schema, input []byte, out any) error

Unmarshal parses an EDI string based on the loaded JSON Schema and returns a map

Types

This section is empty.

Jump to

Keyboard shortcuts

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