summaryrefslogtreecommitdiff
path: root/stream.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-10-26 00:04:23 +0800
committerxuri <xuri.me@gmail.com>2022-10-26 00:04:23 +0800
commitadf9d37d82edd3dbc365fece76a031a92e2220d6 (patch)
tree9cabfbaab8fb790c65591b7e0d8c7fde4c6a72eb /stream.go
parentf44153ea4679247070d6f1e31bb0934a10bebb31 (diff)
This closes #1379, cleanup stream writer temporary files by the `Close` function
- Fix error on inserting columns or rows on the worksheet which contains one cell merged cell range - Fix getting incomplete rich text cell value in some cases - Unit tests updated
Diffstat (limited to 'stream.go')
-rw-r--r--stream.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/stream.go b/stream.go
index fa78d8b..766e83a 100644
--- a/stream.go
+++ b/stream.go
@@ -48,6 +48,11 @@ type StreamWriter struct {
// with numbers and style:
//
// file := excelize.NewFile()
+// defer func() {
+// if err := file.Close(); err != nil {
+// fmt.Println(err)
+// }
+// }()
// streamWriter, err := file.NewStreamWriter("Sheet1")
// if err != nil {
// fmt.Println(err)