summaryrefslogtreecommitdiff
path: root/excelize_test.go
diff options
context:
space:
mode:
authorlizheao <me@manjusaka.me>2018-10-08 22:17:33 +0800
committerlizheao <me@manjusaka.me>2018-10-12 10:25:10 +0800
commit2be4d45c6270d2b8c3e80d8bd6a10cba71b5052a (patch)
treeb5af3b218fb3f59258fbcd4a9f4b12042ba1f48e /excelize_test.go
parentf0234e6c08f77d23499945e2720a900306a12e95 (diff)
feat: add new function and refactor writeto action
* add new exported function to get Excel file content buffer * refactor the WriteTo function
Diffstat (limited to 'excelize_test.go')
-rw-r--r--excelize_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/excelize_test.go b/excelize_test.go
index 9f738f3..b24e45b 100644
--- a/excelize_test.go
+++ b/excelize_test.go
@@ -135,6 +135,10 @@ func TestOpenFile(t *testing.T) {
if err != nil {
t.Log(err)
}
+ _, err = xlsx.WriteToBuffer()
+ if err != nil {
+ t.Error(err)
+ }
}
func TestAddPicture(t *testing.T) {