From 14948929b1280280cc0539d31d9634672d3047e2 Mon Sep 17 00:00:00 2001 From: xing Date: Sun, 28 Aug 2022 22:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- vars/dbconfig.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 7ba3804..6fe36ef 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( ) func init() { - err := vars.InitDbConfig() + err := vars.InitConfig() if err != nil { panic(err) } diff --git a/vars/dbconfig.go b/vars/dbconfig.go index 413b69c..6b71ca4 100644 --- a/vars/dbconfig.go +++ b/vars/dbconfig.go @@ -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