mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
🌐 i18n config file [skip ci]
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user