How jattento/go-iso8583 works
go-iso8583 is a Go library for marshaling and unmarshaling ISO-8583 messages. A caller supplies a tagged Go struct; Marshal encodes its fields and returns message bytes, while Unmarshal reads bytes into a struct. The library includes bitmap handling, MTI semantics, fixed and length-prefixed field types, configurable ASCII/EBCDIC encodings, and a Mastercard ISO 87 message template. The graph reflects documented public workflows and relationships visible in excerpts; unsampled module internals and connections are not inferred.
Main entry points: iso8583 Field codecs · encode.go Marshal · decode.go Unmarshal · bitmap.go Bitmap field
Components 21
ISO field codecs
- Field codecs
pkg/iso8583 - Binary field
pkg/iso8583/binary.go - Bitmap field
pkg/iso8583/bitmap.go - Variable field
pkg/iso8583/var.go - LLVAR field
pkg/iso8583/llvar.go - LLLVAR field
pkg/iso8583/lllvar.go - LL binary
pkg/iso8583/llbinary.go - LLL binary
pkg/iso8583/lllbinary.go - Length prefixes
pkg/iso8583/length.go
Protocol support
- Bitmap adapter
pkg/iso8583/bitmap.go - Bitmap operations
pkg/bitmap/bitmap.go - Encoding registry
pkg/iso8583/encoding.go - EBCDIC conversion
pkg/encoding/ebcdic/ebcdic.go - EBCDIC 1047 table
pkg/encoding/ebcdic/1047.go - MTI field adapter
pkg/iso8583/mti.go - MTI semantics
pkg/mti/mti.go - Bit string utility
pkg/iso8583util/stringbits.go
Message templates
- Mastercard ISO 87
pkg/template/mastercard.go
Other components
- Library caller
Connections 18
- Library caller → Marshal: marshals struct
README.md - Marshal → Library caller: returns bytes
README.md - Library caller → Unmarshal: unmarshals bytes
README.md - Unmarshal → Library caller: fills struct
README.md - Marshal → Bitmap field: resolves bitmap
pkg/iso8583/encode.go - Unmarshal → Field codecs: dispatches field decode
pkg/iso8583/decode.go - Field codecs → Variable field: uses field type
- Field codecs → Bitmap field: uses field type
- Field codecs → LLVAR field: uses field type
- Field codecs → LLLVAR field: uses field type
- Field codecs → Binary field: uses field type
- Field codecs → LL binary: uses field type
- Field codecs → LLL binary: uses field type
- Bitmap field → Bitmap operations: wraps operations
pkg/iso8583/bitmap.go - Encoding registry → EBCDIC conversion: converts EBCDIC
pkg/iso8583/encoding.go - EBCDIC 1047 table → EBCDIC conversion: provides mapping
- MTI field adapter → MTI semantics: wraps MTI type
pkg/iso8583/mti.go - Mastercard ISO 87 → Library caller: provides struct template
README.md