Files
windows_lock_go/config/extend.go
2025-05-22 15:35:52 +08:00

28 lines
495 B
Go

package config
var ExtConfig Extend
// Extend 扩展配置
//
// extend:
// demo:
// name: demo-name
//
// 使用方法: config.ExtConfig......即可!!
type Extend struct {
AMap AMap // 这里配置对应配置文件的结构即可
Redis RedisConfig `mapstructure:"redis"`
FileEndPoint string `mapstructure:"fileEndPoint"`
}
type AMap struct {
Key string
}
// redis配置
type RedisConfig struct {
Addr string
Password string
Db int
}