mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 12:01:35 +08:00
all: replace deprecated io/ioutil with io and os (#3509)
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user