feat ✨: 配置文件扩展项使用

This commit is contained in:
wenjianzhang committed 2021-03-31 19:06:25 +08:00
1 parent 30feaae7e7
commit aefdb47c32
2 files changed
+20 -2

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
package config
var ExtConfig Extand
// 扩展配置
// extend:
// demo:
// name: demo-name
// 使用方法: config.ExtConfig......即可!!
type Extand struct {
// Demo Demo // 这里配置对应配置文件的结构即可
}
type Demo struct {
Name string
}