Versions in this module Expand all Collapse all v0 v0.5.0 Sep 1, 2016 Changes in this version + type Component struct + func NewComponent(ct *ComponentType, required bool) *Component + func (c Component) Required() bool + type ComponentType struct + func NewComponentType(name string, parts []MessagePart) *ComponentType + func (c ComponentType) Fields() []*FieldDef + func (c ComponentType) Name() string + func (c ComponentType) Parts() []MessagePart + func (c ComponentType) RequiredFields() []*FieldDef + func (c ComponentType) RequiredParts() []MessagePart + type DataDictionary struct + ComponentTypes map[string]*ComponentType + FIXType string + FieldTypeByName map[string]*FieldType + FieldTypeByTag map[int]*FieldType + Header *MessageDef + Major int + Messages map[string]*MessageDef + Minor int + ServicePack int + Trailer *MessageDef + func Parse(path string) (*DataDictionary, error) + type Enum struct + Description string + Value string + type Field interface + Tag func() int + type FieldDef struct + Fields []*FieldDef + Parts []MessagePart + func NewFieldDef(fieldType *FieldType, required bool) *FieldDef + func NewGroupFieldDef(fieldType *FieldType, required bool, parts []MessagePart) *FieldDef + func (f FieldDef) IsGroup() bool + func (f FieldDef) Required() bool + func (f FieldDef) RequiredFields() []*FieldDef + func (f FieldDef) RequiredParts() []MessagePart + type FieldType struct + Enums map[string]Enum + Type string + func NewFieldType(name string, tag int, fixType string) *FieldType + func (f FieldType) Name() string + func (f FieldType) Tag() int + type MessageDef struct + Fields map[int]*FieldDef + MsgType string + Name string + Parts []MessagePart + RequiredTags TagSet + Tags TagSet + func NewMessageDef(name, msgType string, parts []MessagePart) *MessageDef + func (m MessageDef) RequiredParts() []MessagePart + type MessagePart interface + Name func() string + Required func() bool + type TagSet map[int]struct + func (t TagSet) Add(tag int) + type XMLComponent struct + Members []*XMLComponentMember + MsgCat string + MsgType string + Name string + type XMLComponentMember struct + Members []*XMLComponentMember + Name string + Required string + XMLName xml.Name + type XMLDoc struct + Components []*XMLComponent + Fields []*XMLField + Header *XMLComponent + Major int + Messages []*XMLComponent + Minor int + ServicePack int + Trailer *XMLComponent + Type string + type XMLField struct + Name string + Number int + Type string + Values []*XMLValue + type XMLValue struct + Description string + Enum string