migrate deprecated io/ioutil.ReadFile to os.ReadFile

This commit is contained in:
steve 2025-02-20 14:04:30 -07:00
parent add254f60c
commit 4814773c62

View file

@ -2,7 +2,7 @@ package client
import (
"encoding/json"
"io/ioutil"
"os"
)
const (
@ -24,7 +24,7 @@ type KeyFile struct {
}
func ConfigFromKeyFile(path string) (*KeyFile, error) {
data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
return nil, err
}