summaryrefslogtreecommitdiff
path: root/xmlWorksheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-08-14 16:09:50 +0000
committerxuri <xuri.me@gmail.com>2020-08-15 09:19:35 +0000
commitc3e92a51d744bc8420e0626b06ee3a0efd030341 (patch)
tree3ddf72f53711ae898baf584287d6b4b7ad4276b9 /xmlWorksheet.go
parentcb6f8852bb764ffc1f9b637faaf594353476e17c (diff)
Compatible with Go 1.15, fix unit test failed on Windows and fixed #689 potential race condition
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r--xmlWorksheet.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go
index 7cd73c4..2b39e64 100644
--- a/xmlWorksheet.go
+++ b/xmlWorksheet.go
@@ -11,11 +11,15 @@
package excelize
-import "encoding/xml"
+import (
+ "encoding/xml"
+ "sync"
+)
// xlsxWorksheet directly maps the worksheet element in the namespace
// http://schemas.openxmlformats.org/spreadsheetml/2006/main.
type xlsxWorksheet struct {
+ sync.RWMutex
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main worksheet"`
SheetPr *xlsxSheetPr `xml:"sheetPr"`
Dimension *xlsxDimension `xml:"dimension"`