1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

app/config/config.go: use os.ReadFile instead of ioutil.

This commit is contained in:
Henrik Hautakoski 2023-10-12 20:51:00 +02:00
parent b364ce56d8
commit cc7ea62487

View file

@ -1,7 +1,7 @@
package config
import (
"io/ioutil"
"os"
"time"
"github.com/eosswedenorg/thalos/app/log"
@ -88,7 +88,7 @@ func (ship *ShipConfig) UnmarshalYAML(value *yaml.Node) error {
}
func Load(filename string) (*Config, error) {
bytes, err := ioutil.ReadFile(filename)
bytes, err := os.ReadFile(filename)
if err != nil {
return nil, err
}