Documentation ¶
Index ¶
Constants ¶
View Source
const ST_ContentTypePattern = `^\p{Latin}+/.*$`
View Source
const ST_ExtensionPattern = `([!$&'\(\)\*\+,:=]|(%[0-9a-fA-F][0-9a-fA-F])|[:@]|[a-zA-Z0-9\-_~])+`
Variables ¶
View Source
var ST_ContentTypePatternRe = regexp.MustCompile(ST_ContentTypePattern)
View Source
var ST_ExtensionPatternRe = regexp.MustCompile(ST_ExtensionPattern)
Functions ¶
This section is empty.
Types ¶
type CT_Default ¶
func NewCT_Default ¶
func NewCT_Default() *CT_Default
func (*CT_Default) MarshalXML ¶
func (m *CT_Default) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (*CT_Default) UnmarshalXML ¶
func (m *CT_Default) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (*CT_Default) Validate ¶
func (m *CT_Default) Validate() error
Validate validates the CT_Default and its children
func (*CT_Default) ValidateWithPath ¶
func (m *CT_Default) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Default and its children, prefixing error messages with path
type CT_Override ¶
func NewCT_Override ¶
func NewCT_Override() *CT_Override
func (*CT_Override) MarshalXML ¶
func (m *CT_Override) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (*CT_Override) UnmarshalXML ¶
func (m *CT_Override) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (*CT_Override) Validate ¶
func (m *CT_Override) Validate() error
Validate validates the CT_Override and its children
func (*CT_Override) ValidateWithPath ¶
func (m *CT_Override) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Override and its children, prefixing error messages with path
type CT_Types ¶
func (*CT_Types) MarshalXML ¶
func (*CT_Types) UnmarshalXML ¶
func (*CT_Types) Validate ¶
Validate validates the CT_Types and its children
type Default ¶
type Default struct {
CT_Default
}
func (*Default) MarshalXML ¶
func (*Default) UnmarshalXML ¶
func (*Default) Validate ¶
Validate validates the Default and its children
type Override ¶
type Override struct {
CT_Override
}
func (*Override) MarshalXML ¶
func (*Override) UnmarshalXML ¶
func (*Override) Validate ¶
Validate validates the Override and its children
Click to show internal directories.
Click to hide internal directories.