init
This commit is contained in:
12
config/config.go
Normal file
12
config/config.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package config
|
||||
|
||||
const (
|
||||
AppEnv = "dev"
|
||||
EnvConfig = "config.yaml"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
IsDebug bool `mapstructure:"is_debug" json:"is_debug" yaml:"is_debug"`
|
||||
Db DbConf `mapstructure:"db" json:"db" yaml:"db"`
|
||||
Service ServiceConf `mapstructure:"service" json:"service" yaml:"service"`
|
||||
}
|
||||
Reference in New Issue
Block a user