diff options
author | xuri <xuri.me@gmail.com> | 2022-10-13 00:02:53 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-10-13 00:13:36 +0800 |
commit | 7363c1e3337c5f0d9c70cc8af7504b3f8c092ab4 (patch) | |
tree | afe4236975d8144d0ffdd55fef7723b2a0295495 /excelize_test.go | |
parent | 0e657c887bf505d62ce3bf685c518cd0ed7bc558 (diff) |
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
Diffstat (limited to 'excelize_test.go')
-rw-r--r-- | excelize_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/excelize_test.go b/excelize_test.go index e685b66..12d155d 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -10,7 +10,6 @@ import ( _ "image/gif" _ "image/jpeg" _ "image/png" - "io/ioutil" "math" "os" "path/filepath" @@ -1388,7 +1387,7 @@ func prepareTestBook1() (*File, error) { return nil, err } - file, err := ioutil.ReadFile(filepath.Join("test", "images", "excel.jpg")) + file, err := os.ReadFile(filepath.Join("test", "images", "excel.jpg")) if err != nil { return nil, err } |