This commit is contained in:
xing 2022-08-28 22:08:16 +08:00
parent a2c593885a
commit 14948929b1
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import (
)
func init() {
err := vars.InitDbConfig()
err := vars.InitConfig()
if err != nil {
panic(err)
}

View File

@ -18,7 +18,7 @@ type Mysql struct {
Pool Pool `yaml:"pool"`
}
func InitDbConfig() error {
func InitConfig() error {
file, err := ioutil.ReadFile("config.yaml")
if err != nil {
return err