From 7363c1e3337c5f0d9c70cc8af7504b3f8c092ab4 Mon Sep 17 00:00:00 2001 From: xuri Date: Thu, 13 Oct 2022 00:02:53 +0800 Subject: Go 1.16 and later required, migration of deprecation package `ioutil` - Improving performance for stream writer `SetRow` function, reduces memory usage over and speedup about 19% - Update dependencies module - Update GitHub workflow --- stream_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stream_test.go') diff --git a/stream_test.go b/stream_test.go index 91aa580..c399d63 100644 --- a/stream_test.go +++ b/stream_test.go @@ -3,7 +3,6 @@ package excelize import ( "encoding/xml" "fmt" - "io/ioutil" "math/rand" "os" "path/filepath" @@ -95,7 +94,7 @@ func TestStreamWriter(t *testing.T) { assert.NoError(t, streamWriter.rawData.Close()) assert.Error(t, streamWriter.Flush()) - streamWriter.rawData.tmp, err = ioutil.TempFile(os.TempDir(), "excelize-") + streamWriter.rawData.tmp, err = os.CreateTemp(os.TempDir(), "excelize-") assert.NoError(t, err) _, err = streamWriter.rawData.Reader() assert.NoError(t, err) -- cgit v1.2.1