excelize/xmlContentTypes.go

22 lines
498 B
Go
Raw Normal View History

2016-10-19 20:39:44 +08:00
// Some code of this file reference tealeg/xlsx.
2016-08-30 11:51:31 +08:00
package excelize
import "encoding/xml"
2016-08-30 11:51:31 +08:00
type xlsxTypes struct {
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/package/2006/content-types Types"`
Overrides []xlsxOverride `xml:"Override"`
Defaults []xlsxDefault `xml:"Default"`
}
type xlsxOverride struct {
PartName string `xml:",attr"`
ContentType string `xml:",attr"`
}
type xlsxDefault struct {
Extension string `xml:",attr"`
ContentType string `xml:",attr"`
}