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 --- crypt_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypt_test.go') diff --git a/crypt_test.go b/crypt_test.go index 95b6f52..a4a510e 100644 --- a/crypt_test.go +++ b/crypt_test.go @@ -12,7 +12,7 @@ package excelize import ( - "io/ioutil" + "os" "path/filepath" "strings" "testing" @@ -32,7 +32,7 @@ func TestEncrypt(t *testing.T) { assert.Equal(t, "SECRET", cell) assert.NoError(t, f.Close()) // Test decrypt spreadsheet with unsupported encrypt mechanism - raw, err := ioutil.ReadFile(filepath.Join("test", "encryptAES.xlsx")) + raw, err := os.ReadFile(filepath.Join("test", "encryptAES.xlsx")) assert.NoError(t, err) raw[2050] = 3 _, err = Decrypt(raw, &Options{Password: "password"}) -- cgit v1.2.1