diff options
author | xuri <xuri.me@gmail.com> | 2021-07-05 00:03:56 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-07-05 00:03:56 +0800 |
commit | 544ef18a8cb9949fcb8833c6d2816783c90f3318 (patch) | |
tree | 88bb3eaa9d92522d3b5c4eeb052210c26bc4c99f /stream.go | |
parent | 0e02329bedf6648259fd219642bb907bdb07fd21 (diff) |
- Support concurrency iterate rows and columns
- Rename exported field `File.XLSX` to `File.Pkg`
- Exported error message
Diffstat (limited to 'stream.go')
-rw-r--r-- | stream.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -301,7 +301,7 @@ func (sw *StreamWriter) SetRow(axis string, values []interface{}) error { } if !sw.sheetWritten { if len(sw.cols) > 0 { - sw.rawData.WriteString("<cols>" + sw.cols + "</cols>") + _, _ = sw.rawData.WriteString("<cols>" + sw.cols + "</cols>") } _, _ = sw.rawData.WriteString(`<sheetData>`) 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 } |