v0.1.2 minor refactor, helpers back to private, utility update
This commit is contained in:
1 parent
f6c05e27b3
commit
f7efbb881c
12 files changed
+178
-53
No files matched your search
@@ -42,13 +42,13 @@ func (c *Config) unmarshal(source Source, target any, basePath ...string) error
|
||||
if source == "" {
|
||||
// Use current merged state
|
||||
for path, item := range c.items {
|
||||
SetNestedValue(nestedMap, path, item.currentValue)
|
||||
setNestedValue(nestedMap, path, item.currentValue)
|
||||
}
|
||||
} else {
|
||||
// Use specific source
|
||||
for path, item := range c.items {
|
||||
if val, exists := item.values[source]; exists {
|
||||
SetNestedValue(nestedMap, path, val)
|
||||
setNestedValue(nestedMap, path, val)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user