Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add merge feature #8

Merged
merged 2 commits into from
Jan 3, 2025
Merged

Add merge feature #8

merged 2 commits into from
Jan 3, 2025

Conversation

kke
Copy link
Collaborator

@kke kke commented Jan 2, 2025

Adds a Merge function for deep merging two Mappings. The function accepts options to control whether existing keys should be overwritten and if nils in the source mapping will overwrite existing non-nil values in the target and how to treat slices (append, overwrite, skip existing).

Signed-off-by: Kimmo Lehto <[email protected]>
@kke kke added the enhancement New feature or request label Jan 2, 2025
@kke kke requested a review from twz123 January 2, 2025 13:40
Signed-off-by: Kimmo Lehto <[email protected]>
@kke kke merged commit 2d4197b into main Jan 3, 2025
1 check passed
@kke kke deleted the deep-merge branch January 3, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant