From 2be4d45c6270d2b8c3e80d8bd6a10cba71b5052a Mon Sep 17 00:00:00 2001 From: lizheao Date: Mon, 8 Oct 2018 22:17:33 +0800 Subject: feat: add new function and refactor writeto action * add new exported function to get Excel file content buffer * refactor the WriteTo function --- excelize_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'excelize_test.go') 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) { -- cgit v1.2.1