changed ioutil to os

alpha
alex 2022-12-10 19:46:58 +01:00
parent 4b2f350532
commit 67fa2b9676
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
package config package config
import ( import (
"io/ioutil" "os"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
@ -14,7 +14,7 @@ type Config struct {
} }
func LoadConfig() { func LoadConfig() {
data, err := ioutil.ReadFile("config.yml") data, err := os.ReadFile("config.yml")
if err != nil { if err != nil {
logrus.Fatalln("Failed to read config file, err:", err) logrus.Fatalln("Failed to read config file, err:", err)