1
0
mirror of https://github.com/golang/go synced 2024-11-18 06:54:49 -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"
"internal/buildcfg"
"internal/coverage"
"io/ioutil"
"log"
"os"
"reflect"
@ -437,7 +436,7 @@ func readImportCfg(file string) {
func readCoverageCfg(file string) {
var cfg coverage.CoverFixupConfig
data, err := ioutil.ReadFile(file)
data, err := os.ReadFile(file)
if err != nil {
log.Fatalf("-coveragecfg: %v", err)
}