From 544ef18a8cb9949fcb8833c6d2816783c90f3318 Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 5 Jul 2021 00:03:56 +0800 Subject: - Support concurrency iterate rows and columns - Rename exported field `File.XLSX` to `File.Pkg` - Exported error message --- stream.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stream.go') diff --git a/stream.go b/stream.go index 054dd8d..4a77b56 100644 --- a/stream.go +++ b/stream.go @@ -301,7 +301,7 @@ func (sw *StreamWriter) SetRow(axis string, values []interface{}) error { } if !sw.sheetWritten { if len(sw.cols) > 0 { - sw.rawData.WriteString("" + sw.cols + "") + _, _ = sw.rawData.WriteString("" + sw.cols + "") } _, _ = sw.rawData.WriteString(``) sw.sheetWritten = true @@ -481,9 +481,9 @@ func (sw *StreamWriter) Flush() error { } sheetPath := sw.File.sheetMap[trimSheetName(sw.Sheet)] - delete(sw.File.Sheet, sheetPath) + sw.File.Sheet.Delete(sheetPath) delete(sw.File.checked, sheetPath) - delete(sw.File.XLSX, sheetPath) + sw.File.Pkg.Delete(sheetPath) return nil } -- cgit v1.2.1