sample_basic

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 3 Imported by: 0

README

Basic Example: EDIFACT to JSON

This example demonstrates how to use the edifact package to convert an EDIFACT message to JSON using the generic handler.

Flow Diagram

flowchart TD
    A["EDIFACT Message (string)"] -->|Read/Parse| B["edifact.Reader / edifact.Converter"]
    B -->|Parse| C["Tokenizer & Parser"]
    C -->|Build| D["model.Message"]
    D -->|Dispatch| E["Dispatcher/Router"]
    E -->|GenericHandler| F["Generic Structure (map/struct)"]
    F -->|Marshal| G["JSON Output"]
    style A fill:#f9f,stroke:#333,stroke-width:2px
    style G fill:#bbf,stroke:#333,stroke-width:2px

Usage

See main.go for runnable code.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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