io/ioutil deprecated (#3217)
This commit is contained in:
3
tools/goctl/compare/testdata/testdata.go
vendored
3
tools/goctl/compare/testdata/testdata.go
vendored
@@ -2,7 +2,6 @@ package testdata
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
@@ -78,7 +77,7 @@ func mustGetTestData(baseDir string) (Files, Files) {
|
||||
return data, nil
|
||||
}
|
||||
|
||||
return data, ioutil.WriteFile(fp, []byte(data.Content), os.ModePerm)
|
||||
return data, os.WriteFile(fp, []byte(data.Content), os.ModePerm)
|
||||
}
|
||||
oldDir := filepath.Join(baseDir, "old_fs")
|
||||
newDir := filepath.Join(baseDir, "new_fs")
|
||||
|
||||
Reference in New Issue
Block a user