init
This commit is contained in:
19
config/config.go
Normal file
19
config/config.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user