go-edilib

module
v0.0.0-...-c8e183c Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0

README

go-edi - edifact reader written in golang

Features

  • reads generic edifact format
  • UN/EDIFACT support
  • X12 support

Usage (generic edifact example)

edilib supports go modules.

package examples

import (
	"fmt"
	"github.com/edilib/go-edilib/edifact"
	"github.com/edilib/go-edilib/edifact/types"
	"os"
)

func main() {
	file, _ := os.Open("edifact-file.txt")

	p := edifact.NewSegmentReader(file, types.UnEdifactFormat())
	segments, _ := p.ReadAll()

	fmt.Printf("%v", segments)
}

License

Copyright (c) 2021 by Cornelius Buschka.

Apache License, Version 2.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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