sample_generic

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

README

Generic Example: Custom Adapter Flow

This example demonstrates how to implement and register a custom adapter for a specific EDIFACT message type (e.g., ORDERS, VERMAS, IFTMBF).

Flow Diagram

flowchart TD
    A["EDIFACT Message (ORDERS, VERMAS, IFTMBF)"] -->|Read/Parse| B["edifact.Reader / edifact.Converter"]
    B -->|Parse| C["Tokenizer & Parser"]
    C -->|Build| D["model.Message"]
    D -->|Dispatch| E["Dispatcher/Router"]
    E -->|CustomAdapter (ORDERS, VERMAS, IFTMBF)| F["Custom Struct (Booking, etc.)"]
    F -->|Marshal| G["JSON Output / DB Save"]
    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 and custom adapter examples.

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