24 lines
419 B
Go
24 lines
419 B
Go
package config
|
|
|
|
var ExtConfig Extend
|
|
|
|
// Extend 扩展配置
|
|
//
|
|
// extend:
|
|
// demo:
|
|
// name: demo-name
|
|
//
|
|
// 使用方法: config.ExtConfig......即可!!
|
|
type Extend struct {
|
|
AMap AMap `json:"amap" yaml:"amap"`
|
|
Chorus Chorus `json:"chorus" yaml:"chorus"`
|
|
}
|
|
|
|
type AMap struct {
|
|
Key string `json:"key" yaml:"key"`
|
|
}
|
|
|
|
type Chorus struct {
|
|
StorageRoot string `json:"storage_root" yaml:"storage_root"`
|
|
}
|