27 lines
455 B
Go
27 lines
455 B
Go
|
|
package config
|
||
|
|
|
||
|
|
var ExtConfig Extend
|
||
|
|
|
||
|
|
// Extend 扩展配置
|
||
|
|
//
|
||
|
|
// extend:
|
||
|
|
// demo:
|
||
|
|
// name: demo-name
|
||
|
|
//
|
||
|
|
// 使用方法: config.ExtConfig......即可!!
|
||
|
|
type Extend struct {
|
||
|
|
AMap AMap // 这里配置对应配置文件的结构即可
|
||
|
|
Mq MqConfig
|
||
|
|
}
|
||
|
|
|
||
|
|
type AMap struct {
|
||
|
|
Key string
|
||
|
|
}
|
||
|
|
|
||
|
|
type MqConfig struct {
|
||
|
|
Addr string `yaml:"addr"`
|
||
|
|
Username string `yaml:"username"`
|
||
|
|
// Password string `yaml:"password"`
|
||
|
|
Pass string `yaml:"pass"`
|
||
|
|
}
|