summaryrefslogtreecommitdiff
path: root/xmlStyles.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-07-07 00:57:43 +0800
committerxuri <xuri.me@gmail.com>2021-07-07 00:57:43 +0800
commit90d200a10ba4d8c2ae2eff47ad8e1cca0ab28e76 (patch)
tree7579365b99b61562404ced4d71058b917b92f003 /xmlStyles.go
parentb7fece51736977e7d84aca30ecce7f6b3a1251f2 (diff)
Make the functions `SetSheetRow`, `New Style` and `SetCellStyle` concurrency safety
Diffstat (limited to 'xmlStyles.go')
-rw-r--r--xmlStyles.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmlStyles.go b/xmlStyles.go
index 92e4e6a..afdc170 100644
--- a/xmlStyles.go
+++ b/xmlStyles.go
@@ -11,10 +11,14 @@
package excelize
-import "encoding/xml"
+import (
+ "encoding/xml"
+ "sync"
+)
// xlsxStyleSheet is the root element of the Styles part.
type xlsxStyleSheet struct {
+ sync.Mutex
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main styleSheet"`
NumFmts *xlsxNumFmts `xml:"numFmts,omitempty"`
Fonts *xlsxFonts `xml:"fonts,omitempty"`