20 lines
544 B
Go
20 lines
544 B
Go
package config
|
|
|
|
//环境 全称 简写
|
|
//开发环境 development dev
|
|
//测试环境 testing test
|
|
//灰度/预发布环境 staging/pre-production stag
|
|
//生产环境 production prod
|
|
|
|
const (
|
|
// AppEnv 应用环境 dev,test,stag,prod
|
|
AppEnv = "dev"
|
|
// EnvConfig 环境配置
|
|
EnvConfig = "config.yaml"
|
|
)
|
|
|
|
type Config struct {
|
|
Db DbConf `mapstructure:"db" json:"db" yaml:"db"`
|
|
Service ServiceConf `mapstructure:"service" json:"service" yaml:"service"`
|
|
}
|