Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeMaps ¶
MergeMaps merges `overrides` into `values` with rules:
- If both sides are map[string]interface{}, merge recursively.
- If key does not exist in values, set it.
- If either side is nil, simple override.
- For non-map (simple) types, always override (even if types differ).
- If BOTH sides are maps but of DIFFERENT map types (e.g., map[string]string vs map[string]interface{}), return error.
- If values is a map and overrides is a non-map (non-nil), return error. (Overriding a map with a non-map is disallowed; overriding with nil is allowed.)
- If both sides are maps of the SAME non-MSI type, simple override (no recursion).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.