const ST_ContentTypePattern = `^\p{Latin}+/.*$`
const ST_ExtensionPattern = `([!$&'\(\)\*\+,:=]|(%[0-9a-fA-F][0-9a-fA-F])|[:@]|[a-zA-Z0-9\-_~])+`
var ST_ContentTypePatternRe = regexp.MustCompile(ST_ContentTypePattern)
var ST_ExtensionPatternRe = regexp.MustCompile(ST_ExtensionPattern)
type CT_Default struct { ExtensionAttr string ContentTypeAttr string }
func NewCT_Default() *CT_Default
func (m *CT_Default) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_Default) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_Default) Validate() error
Validate validates the CT_Default and its children
func (m *CT_Default) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Default and its children, prefixing error messages with path
type CT_Override struct { ContentTypeAttr string PartNameAttr string }
func NewCT_Override() *CT_Override
func (m *CT_Override) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_Override) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_Override) Validate() error
Validate validates the CT_Override and its children
func (m *CT_Override) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Override and its children, prefixing error messages with path
type CT_Types struct { Default []*Default Override []*Override }
func NewCT_Types() *CT_Types
func (m *CT_Types) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_Types) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_Types) Validate() error
Validate validates the CT_Types and its children
func (m *CT_Types) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Types and its children, prefixing error messages with path
type Default struct { CT_Default }
func NewDefault() *Default
func (m *Default) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *Default) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *Default) Validate() error
Validate validates the Default and its children
func (m *Default) ValidateWithPath(path string) error
ValidateWithPath validates the Default and its children, prefixing error messages with path
type Override struct { CT_Override }
func NewOverride() *Override
func (m *Override) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *Override) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *Override) Validate() error
Validate validates the Override and its children
func (m *Override) ValidateWithPath(path string) error
ValidateWithPath validates the Override and its children, prefixing error messages with path
type Types struct { CT_Types }
func NewTypes() *Types
func (m *Types) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *Types) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *Types) Validate() error
Validate validates the Types and its children
func (m *Types) ValidateWithPath(path string) error
ValidateWithPath validates the Types and its children, prefixing error messages with path