mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:53:44 +08:00
1 parent
986295ae57
commit
2cec0b17d3
9 files changed
+277
-136
No files matched your search
@@ -49,6 +49,8 @@ type DocInfo struct {
|
||||
Abstract string `xml:"Abstract"`
|
||||
CreationDate string `xml:"CreationDate"`
|
||||
ModDate string `xml:"ModDate"`
|
||||
DocUsage string `xml:"DocUsage"`
|
||||
Cover string `xml:"Cover"`
|
||||
Keywords Keywords `xml:"Keywords,omitempty"`
|
||||
Creator string `xml:"Creator"`
|
||||
CreatorVersion string `xml:"CreatorVersion"`
|
||||
@@ -133,6 +135,10 @@ func (info *DocInfo) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
|
||||
target = &info.CreationDate
|
||||
case "ModDate":
|
||||
target = &info.ModDate
|
||||
case "DocUsage":
|
||||
target = &info.DocUsage
|
||||
case "Cover":
|
||||
target = &info.Cover
|
||||
case "Keywords":
|
||||
target = &info.Keywords
|
||||
case "Creator":
|
||||
|
||||
Reference in new issue
Block a user