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