v0.1.2 minor refactor, helpers back to private, utility update

This commit is contained in:
lixen committed 2025-11-14 13:02:19 -05:00
1 parent f6c05e27b3
commit f7efbb881c
12 files changed
+178 -53

No files matched your search

+2 -2
View File
@@ -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)
}
}
}