summaryrefslogtreecommitdiff
path: root/xmlContentTypes.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-07-06 00:31:04 +0800
committerxuri <xuri.me@gmail.com>2021-07-06 00:31:04 +0800
commitb7fece51736977e7d84aca30ecce7f6b3a1251f2 (patch)
tree77c730b216adbdf54b1b5c3542478bfcb2e5c61b /xmlContentTypes.go
parent544ef18a8cb9949fcb8833c6d2816783c90f3318 (diff)
Support concurrency add picture
Diffstat (limited to 'xmlContentTypes.go')
-rw-r--r--xmlContentTypes.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmlContentTypes.go b/xmlContentTypes.go
index f429ef6..6b6db63 100644
--- a/xmlContentTypes.go
+++ b/xmlContentTypes.go
@@ -11,12 +11,16 @@
package excelize
-import "encoding/xml"
+import (
+ "encoding/xml"
+ "sync"
+)
// xlsxTypes directly maps the types element of content types for relationship
// parts, it takes a Multipurpose Internet Mail Extension (MIME) media type as a
// value.
type xlsxTypes struct {
+ sync.Mutex
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/package/2006/content-types Types"`
Overrides []xlsxOverride `xml:"Override"`
Defaults []xlsxDefault `xml:"Default"`