|
|
@ -3,7 +3,6 @@ package config
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"gopkg.in/yaml.v3"
|
|
|
|
"gopkg.in/yaml.v3"
|
|
|
|
"io/ioutil"
|
|
|
|
"io/ioutil"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
var Config config
|
|
|
|
var Config config
|
|
|
@ -148,8 +147,8 @@ type config struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
func init() {
|
|
|
|
path, _ := os.Getwd()
|
|
|
|
//path, _ := os.Getwd()
|
|
|
|
bytes, err := ioutil.ReadFile(path + "/config/config.yaml")
|
|
|
|
bytes, err := ioutil.ReadFile("../config/config.yaml")
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|