@ -31,61 +31,61 @@ type DocProperties struct {
Version string
Version string
}
}
// decodeDcTerms directly maps the DCMI metadata terms for the coreProperties.
type decodeDcTerms struct {
Text string ` xml:",chardata" `
Type string ` xml:"http://www.w3.org/2001/XMLSchema-instance type,attr" `
}
// decodeCoreProperties directly maps the root element for a part of this
// decodeCoreProperties directly maps the root element for a part of this
// content type shall coreProperties. In order to solve the problem that the
// content type shall coreProperties. In order to solve the problem that the
// label structure is changed after serialization and deserialization, two
// label structure is changed after serialization and deserialization, two
// different structures are defined. decodeCoreProperties just for
// different structures are defined. decodeCoreProperties just for
// deserialization.
// deserialization.
type decodeCoreProperties struct {
type decodeCoreProperties struct {
XMLName xml . Name ` xml:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties coreProperties" `
XMLName xml . Name ` xml:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties coreProperties" `
Title string ` xml:"http://purl.org/dc/elements/1.1/ title,omitempty" `
Title string ` xml:"http://purl.org/dc/elements/1.1/ title,omitempty" `
Subject string ` xml:"http://purl.org/dc/elements/1.1/ subject,omitempty" `
Subject string ` xml:"http://purl.org/dc/elements/1.1/ subject,omitempty" `
Creator string ` xml:"http://purl.org/dc/elements/1.1/ creator" `
Creator string ` xml:"http://purl.org/dc/elements/1.1/ creator" `
Keywords string ` xml:"keywords,omitempty" `
Keywords string ` xml:"keywords,omitempty" `
Description string ` xml:"http://purl.org/dc/elements/1.1/ description,omitempty" `
Description string ` xml:"http://purl.org/dc/elements/1.1/ description,omitempty" `
LastModifiedBy string ` xml:"lastModifiedBy" `
LastModifiedBy string ` xml:"lastModifiedBy" `
Language string ` xml:"http://purl.org/dc/elements/1.1/ language,omitempty" `
Language string ` xml:"http://purl.org/dc/elements/1.1/ language,omitempty" `
Identifier string ` xml:"http://purl.org/dc/elements/1.1/ identifier,omitempty" `
Identifier string ` xml:"http://purl.org/dc/elements/1.1/ identifier,omitempty" `
Revision string ` xml:"revision,omitempty" `
Revision string ` xml:"revision,omitempty" `
Created struct {
Created * decodeDcTerms ` xml:"http://purl.org/dc/terms/ created" `
Text string ` xml:",chardata "`
Modified * decodeDcTerms ` xml:"http://purl.org/dc/terms/ modified "`
Type string ` xml:"http://www.w3.org/2001/XMLSchema-instance type,attr "`
ContentStatus string ` xml:"contentStatus,omitempty "`
} ` xml:"http://purl.org/dc/terms/ created "`
Category string ` xml:"category,omitempty "`
Modified struct {
Version string ` xml:"version,omitempty" `
Text string ` xml:",chardata" `
}
Type string ` xml:"http://www.w3.org/2001/XMLSchema-instance type,attr" `
} ` xml:"http://purl.org/dc/terms/ modified" `
// xlsxDcTerms directly maps the DCMI metadata terms for the coreProperties.
ContentStatus string ` xml:"contentStatus,omitempty" `
type xlsxDcTerms struct {
Category string ` xml:"category,omitempty "`
Text string ` xml:",chardata "`
Version string ` xml:"version,omitempty "`
Type string ` xml:"xsi:type,attr "`
}
}
// xlsxCoreProperties directly maps the root element for a part of this
// xlsxCoreProperties directly maps the root element for a part of this
// content type shall coreProperties.
// content type shall coreProperties.
type xlsxCoreProperties struct {
type xlsxCoreProperties struct {
XMLName xml . Name ` xml:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties coreProperties" `
XMLName xml . Name ` xml:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties coreProperties" `
Dc string ` xml:"xmlns:dc,attr" `
Dc string ` xml:"xmlns:dc,attr" `
Dcterms string ` xml:"xmlns:dcterms,attr" `
Dcterms string ` xml:"xmlns:dcterms,attr" `
Dcmitype string ` xml:"xmlns:dcmitype,attr" `
Dcmitype string ` xml:"xmlns:dcmitype,attr" `
XSI string ` xml:"xmlns:xsi,attr" `
XSI string ` xml:"xmlns:xsi,attr" `
Title string ` xml:"dc:title,omitempty" `
Title string ` xml:"dc:title,omitempty" `
Subject string ` xml:"dc:subject,omitempty" `
Subject string ` xml:"dc:subject,omitempty" `
Creator string ` xml:"dc:creator" `
Creator string ` xml:"dc:creator" `
Keywords string ` xml:"keywords,omitempty" `
Keywords string ` xml:"keywords,omitempty" `
Description string ` xml:"dc:description,omitempty" `
Description string ` xml:"dc:description,omitempty" `
LastModifiedBy string ` xml:"lastModifiedBy" `
LastModifiedBy string ` xml:"lastModifiedBy" `
Language string ` xml:"dc:language,omitempty" `
Language string ` xml:"dc:language,omitempty" `
Identifier string ` xml:"dc:identifier,omitempty" `
Identifier string ` xml:"dc:identifier,omitempty" `
Revision string ` xml:"revision,omitempty" `
Revision string ` xml:"revision,omitempty" `
Created struct {
Created * xlsxDcTerms ` xml:"dcterms:created" `
Text string ` xml:",chardata" `
Modified * xlsxDcTerms ` xml:"dcterms:modified" `
Type string ` xml:"xsi:type,attr" `
ContentStatus string ` xml:"contentStatus,omitempty" `
} ` xml:"dcterms:created" `
Category string ` xml:"category,omitempty" `
Modified struct {
Version string ` xml:"version,omitempty" `
Text string ` xml:",chardata" `
Type string ` xml:"xsi:type,attr" `
} ` xml:"dcterms:modified" `
ContentStatus string ` xml:"contentStatus,omitempty" `
Category string ` xml:"category,omitempty" `
Version string ` xml:"version,omitempty" `
}
}