changed ioutil to os
parent
4b2f350532
commit
67fa2b9676
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue