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:
parent
d268504fd9
commit
298853a820
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user