mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 01:27:16 +08:00
all: replace deprecated io/ioutil with io and os (#3509)
This commit is contained in:
@ -4,7 +4,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"go/constant"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"sort"
|
||||
@ -1331,7 +1331,7 @@ func TestCallFunction(t *testing.T) {
|
||||
}
|
||||
|
||||
func testCallFunctionSetBreakpoint(t *testing.T, p *proc.Target, grp *proc.TargetGroup, fixture protest.Fixture) {
|
||||
buf, err := ioutil.ReadFile(fixture.Source)
|
||||
buf, err := os.ReadFile(fixture.Source)
|
||||
assertNoError(err, t, "ReadFile")
|
||||
for i, line := range strings.Split(string(buf), "\n") {
|
||||
if strings.Contains(line, "// breakpoint here") {
|
||||
|
||||
Reference in New Issue
Block a user