1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2025-08-03 12:50:27 +00:00

chore: remove refs to deprecated io/ioutil

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guoguangwu 2023-07-20 18:25:32 +08:00
parent f966b14096
commit 919f9abf38
12 changed files with 26 additions and 37 deletions

View file

@ -4,7 +4,6 @@ import (
"bytes"
"compress/gzip"
"io"
"io/ioutil"
"os"
"testing"
)
@ -186,7 +185,7 @@ func BenchmarkGetPut(b *testing.B) {
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
func() {
fh, err := ioutil.TempFile("", "tar-split.")
fh, err := os.CreateTemp("", "tar-split.")
if err != nil {
b.Fatal(err)
}