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