Documentation ¶
Index ¶
Constants ¶
View Source
const ContentTypesFileName = "[Content_Types].xml"
View Source
const PrefixXL = "/xl"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { xml.Name `xml:"Types"` DefaultTypes []DefaultType `xml:"Default"` OverrideTypes []OverrideType `xml:"Override"` }
func (Content) FindFirstOverrideByContentType ¶
func (cts Content) FindFirstOverrideByContentType(partNamePrefix string, cty ContentType) (OverrideType, error)
type ContentType ¶
type ContentType string
const ( ContentTypeXML ContentType = "application/xml" ContentTypeWorkbook ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" ContentTypeSheet ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" ContentTypeRels ContentType = "application/vnd.openxmlformats-package.relationships+xml" )
type DefaultType ¶
type DefaultType struct { xml.Name `xml:"Default"` Extension string `xml:"Extension,attr"` ContentType ContentType `xml:"ContentType,attr"` }
type OverrideType ¶
type OverrideType struct { xml.Name `xml:"Override"` PartName string `xml:"PartName,attr"` ContentType ContentType `xml:"ContentType,attr"` }
type WorkbookRel ¶
type WorkbookRels ¶
type WorkbookRels struct { xml.Name `xml:"Relationships"` Rels []WorkbookRel `xml:"Relationship"` }
func (WorkbookRels) FindRel ¶
func (wrs WorkbookRels) FindRel(id string) (WorkbookRel, bool)
Click to show internal directories.
Click to hide internal directories.