mirror of
https://github.com/taigrr/jety.git
synced 2026-04-02 03:19:03 -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 {
|
if envVal, ok := c.envConfig[lower]; !ok {
|
||||||
c.mapConfig[lower] = envVal
|
c.mapConfig[lower] = envVal
|
||||||
c.combinedConfig[lower] = envVal
|
c.combinedConfig[lower] = envVal
|
||||||
|
} else {
|
||||||
|
c.combinedConfig[lower] = ConfigMap{Key: key, Value: value}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user