diff options
author | xuri <xuri.me@gmail.com> | 2021-07-07 00:57:43 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-07-07 00:57:43 +0800 |
commit | 90d200a10ba4d8c2ae2eff47ad8e1cca0ab28e76 (patch) | |
tree | 7579365b99b61562404ced4d71058b917b92f003 /xmlStyles.go | |
parent | b7fece51736977e7d84aca30ecce7f6b3a1251f2 (diff) |
Make the functions `SetSheetRow`, `New Style` and `SetCellStyle` concurrency safety
Diffstat (limited to 'xmlStyles.go')
-rw-r--r-- | xmlStyles.go | 6 |
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"` |