Versions in this module Expand all Collapse all v1 v1.0.1 Jul 6, 2023 v1.0.0 Jul 6, 2023 Changes in this version + func CreateSubfields(s *Spec) map[string]Field + type Binary struct + func NewBinary(spec *Spec) *Binary + func NewBinaryValue(val []byte) *Binary + func (f *Binary) Bytes() ([]byte, error) + func (f *Binary) Marshal(data interface{}) error + func (f *Binary) MarshalJSON() ([]byte, error) + func (f *Binary) Pack() ([]byte, error) + func (f *Binary) SetBytes(b []byte) error + func (f *Binary) SetData(data interface{}) error + func (f *Binary) SetSpec(spec *Spec) + func (f *Binary) SetValue(v []byte) + func (f *Binary) Spec() *Spec + func (f *Binary) String() (string, error) + func (f *Binary) Unmarshal(v interface{}) error + func (f *Binary) UnmarshalJSON(b []byte) error + func (f *Binary) Unpack(data []byte) (int, error) + func (f *Binary) Value() []byte + type Bitmap struct + func NewBitmap(spec *Spec) *Bitmap + func (f *Bitmap) Bytes() ([]byte, error) + func (f *Bitmap) IsSet(i int) bool + func (f *Bitmap) Len() int + func (f *Bitmap) Marshal(data interface{}) error + func (f *Bitmap) Pack() ([]byte, error) + func (f *Bitmap) Reset() + func (f *Bitmap) Set(i int) + func (f *Bitmap) SetBytes(b []byte) error + func (f *Bitmap) SetData(data interface{}) error + func (f *Bitmap) SetSpec(spec *Spec) + func (f *Bitmap) Spec() *Spec + func (f *Bitmap) String() (string, error) + func (f *Bitmap) Unmarshal(v interface{}) error + func (f *Bitmap) Unpack(data []byte) (int, error) + type Composite struct + func NewComposite(spec *Spec) *Composite + func (f *Composite) Bytes() ([]byte, error) + func (f *Composite) ConstructSubfields() + func (f *Composite) Marshal(v interface{}) error + func (f *Composite) MarshalJSON() ([]byte, error) + func (f *Composite) Pack() ([]byte, error) + func (f *Composite) SetBytes(data []byte) error + func (f *Composite) SetData(v interface{}) error + func (f *Composite) SetSpec(spec *Spec) + func (f *Composite) Spec() *Spec + func (f *Composite) String() (string, error) + func (f *Composite) Unmarshal(v interface{}) error + func (f *Composite) UnmarshalJSON(b []byte) error + func (f *Composite) Unpack(data []byte) (int, error) + type CompositeWithSubfields interface + ConstructSubfields func() + type Field interface + Bytes func() ([]byte, error) + Marshal func(v interface{}) error + Pack func() ([]byte, error) + SetBytes func(data []byte) error + SetData func(data interface{}) error + SetSpec func(spec *Spec) + Spec func() *Spec + String func() (string, error) + Unmarshal func(v interface{}) error + Unpack func(data []byte) (int, error) + func CreateSubfield(specField Field) Field + type Numeric struct + func NewNumeric(spec *Spec) *Numeric + func NewNumericValue(val int) *Numeric + func (f *Numeric) Bytes() ([]byte, error) + func (f *Numeric) Marshal(data interface{}) error + func (f *Numeric) MarshalJSON() ([]byte, error) + func (f *Numeric) Pack() ([]byte, error) + func (f *Numeric) SetBytes(b []byte) error + func (f *Numeric) SetData(data interface{}) error + func (f *Numeric) SetSpec(spec *Spec) + func (f *Numeric) SetValue(v int) + func (f *Numeric) Spec() *Spec + func (f *Numeric) String() (string, error) + func (f *Numeric) Unmarshal(v interface{}) error + func (f *Numeric) UnmarshalJSON(b []byte) error + func (f *Numeric) Unpack(data []byte) (int, error) + func (f *Numeric) Value() int + type OrderedMap map[string]Field + func (om OrderedMap) MarshalJSON() ([]byte, error) + type Spec struct + Description string + Enc encoding.Encoder + Length int + Pad padding.Padder + Pref prefix.Prefixer + Subfields map[string]Field + Tag *TagSpec + func NewSpec(length int, desc string, enc encoding.Encoder, pref prefix.Prefixer) *Spec + type String struct + func NewString(spec *Spec) *String + func NewStringValue(val string) *String + func (f *String) Bytes() ([]byte, error) + func (f *String) Marshal(data interface{}) error + func (f *String) MarshalJSON() ([]byte, error) + func (f *String) Pack() ([]byte, error) + func (f *String) SetBytes(b []byte) error + func (f *String) SetData(data interface{}) error + func (f *String) SetSpec(spec *Spec) + func (f *String) SetValue(v string) + func (f *String) Spec() *Spec + func (f *String) String() (string, error) + func (f *String) Unmarshal(v interface{}) error + func (f *String) UnmarshalJSON(b []byte) error + func (f *String) Unpack(data []byte) (int, error) + func (f *String) Value() string + type TagSpec struct + Enc encoding.Encoder + Length int + Pad padding.Padder + Sort sort.StringSlice + type Track1 struct + DiscretionaryData string + ExpirationDate *time.Time + FixedLength bool + FormatCode string + Name string + PrimaryAccountNumber string + ServiceCode string + func NewTrack1(spec *Spec) *Track1 + func (f *Track1) Bytes() ([]byte, error) + func (f *Track1) Marshal(data interface{}) error + func (f *Track1) Pack() ([]byte, error) + func (f *Track1) SetBytes(b []byte) error + func (f *Track1) SetData(data interface{}) error + func (f *Track1) SetSpec(spec *Spec) + func (f *Track1) Spec() *Spec + func (f *Track1) String() (string, error) + func (f *Track1) Unmarshal(v interface{}) error + func (f *Track1) Unpack(data []byte) (int, error) + type Track2 struct + DiscretionaryData string + ExpirationDate *time.Time + PrimaryAccountNumber string + Separator string + ServiceCode string + func NewTrack2(spec *Spec) *Track2 + func (f *Track2) Bytes() ([]byte, error) + func (f *Track2) Marshal(data interface{}) error + func (f *Track2) Pack() ([]byte, error) + func (f *Track2) SetBytes(b []byte) error + func (f *Track2) SetData(data interface{}) error + func (f *Track2) SetSpec(spec *Spec) + func (f *Track2) Spec() *Spec + func (f *Track2) String() (string, error) + func (f *Track2) Unmarshal(v interface{}) error + func (f *Track2) Unpack(data []byte) (int, error) + type Track3 struct + DiscretionaryData string + FormatCode string + PrimaryAccountNumber string + func NewTrack3(spec *Spec) *Track3 + func (f *Track3) Bytes() ([]byte, error) + func (f *Track3) Marshal(data interface{}) error + func (f *Track3) Pack() ([]byte, error) + func (f *Track3) SetBytes(b []byte) error + func (f *Track3) SetData(data interface{}) error + func (f *Track3) SetSpec(spec *Spec) + func (f *Track3) Spec() *Spec + func (f *Track3) String() (string, error) + func (f *Track3) Unmarshal(v interface{}) error + func (f *Track3) Unpack(data []byte) (int, error)