mirror of
https://github.com/taigrr/jety.git
synced 2026-04-01 19:08:58 -07:00
add defaults to config file
This commit is contained in:
@@ -37,6 +37,8 @@ func (c *ConfigManager) SetDefault(key string, value any) {
|
||||
if envVal, ok := c.envConfig[lower]; !ok {
|
||||
c.mapConfig[lower] = envVal
|
||||
c.combinedConfig[lower] = envVal
|
||||
} else {
|
||||
c.combinedConfig[lower] = ConfigMap{Key: key, Value: value}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user