1
0
mirror of https://github.com/golang/go synced 2024-11-18 07:04:52 -07:00

cmd/compile/internal/base: replace io/ioutil with os package

Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
cui fliter 2022-09-28 17:07:36 +08:00
parent d268504fd9
commit 298853a820

View File

@ -10,7 +10,6 @@ import (
"fmt" "fmt"
"internal/buildcfg" "internal/buildcfg"
"internal/coverage" "internal/coverage"
"io/ioutil"
"log" "log"
"os" "os"
"reflect" "reflect"
@ -437,7 +436,7 @@ func readImportCfg(file string) {
func readCoverageCfg(file string) { func readCoverageCfg(file string) {
var cfg coverage.CoverFixupConfig var cfg coverage.CoverFixupConfig
data, err := ioutil.ReadFile(file) data, err := os.ReadFile(file)
if err != nil { if err != nil {
log.Fatalf("-coveragecfg: %v", err) log.Fatalf("-coveragecfg: %v", err)
} }