diff --git a/excelize.go b/excelize.go index bfb3aba..75b0c13 100644 --- a/excelize.go +++ b/excelize.go @@ -31,7 +31,7 @@ import ( // File define a populated spreadsheet file struct. type File struct { - sync.RWMutex + sync.Mutex xmlAttr map[string][]xml.Attr checked map[string]bool sheetMap map[string]string diff --git a/file_test.go b/file_test.go index e27b754..9fc120c 100644 --- a/file_test.go +++ b/file_test.go @@ -19,7 +19,7 @@ func BenchmarkWrite(b *testing.B) { if err != nil { b.Error(err) } - if err := f.SetCellDefault("Sheet1", val, s); err != nil { + if err := f.SetCellValue("Sheet1", val, s); err != nil { b.Error(err) } } diff --git a/xmlWorksheet.go b/xmlWorksheet.go index 2b39e64..bc81b03 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -19,7 +19,7 @@ import ( // xlsxWorksheet directly maps the worksheet element in the namespace // http://schemas.openxmlformats.org/spreadsheetml/2006/main. type xlsxWorksheet struct { - sync.RWMutex + sync.Mutex XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main worksheet"` SheetPr *xlsxSheetPr `xml:"sheetPr"` Dimension *xlsxDimension `xml:"dimension"`