all: replace deprecated io/ioutil with io and os (#3509)

This commit is contained in:
Oleksandr Redko
2023-09-25 21:41:59 +03:00
committed by GitHub
parent 224a2805a4
commit 899ba72505
29 changed files with 76 additions and 95 deletions

View File

@ -3,7 +3,7 @@ package frame
import (
"bytes"
"encoding/binary"
"io/ioutil"
"io"
"os"
"testing"
)
@ -47,7 +47,7 @@ func BenchmarkParse(b *testing.B) {
}
defer f.Close()
data, err := ioutil.ReadAll(f)
data, err := io.ReadAll(f)
if err != nil {
b.Fatal(err)
}