🌐 i18n config file [skip ci]

This commit is contained in:
naiba committed 2022-04-28 10:17:38 +08:00
1 parent 32d5805415
commit b5f4abf369
10 files changed
+19 -11

No files matched your search

+1 -1
View File
@@ -30,7 +30,6 @@ func Init() {
panic(err)
}
Conf = &model.Config{}
Cache = cache.New(5*time.Minute, 10*time.Minute)
}
@@ -43,6 +42,7 @@ func LoadSingleton() {
// InitConfigFromPath 从给出的文件路径中加载配置
func InitConfigFromPath(path string) {
Conf = &model.Config{}
err := Conf.Read(path)
if err != nil {
panic(err)