Remove ioutil

Signed-off-by: inosato <si17_21@yahoo.co.jp>
This commit is contained in:
inosato 2022-07-29 23:39:29 +09:00
parent c2505cf91e
commit b43a60e9c8

View file

@ -15,7 +15,7 @@ package mapper
import ( import (
"fmt" "fmt"
"io/ioutil" "os"
"regexp" "regexp"
"sync" "sync"
"time" "time"
@ -267,7 +267,7 @@ func (m *MetricMapper) InitFromYAMLString(fileContents string) error {
} }
func (m *MetricMapper) InitFromFile(fileName string) error { func (m *MetricMapper) InitFromFile(fileName string) error {
mappingStr, err := ioutil.ReadFile(fileName) mappingStr, err := os.ReadFile(fileName)
if err != nil { if err != nil {
return err return err
} }