Skip to content

Conversation

@jphastings
Copy link

@jphastings jphastings commented Oct 4, 2025

Implements deep mapping of nested slices of structs.

Two people (originally @mullerch, whose work this is, and later @ayratsa who transferred the PR to the go-viper owned blessed fork) have submitted this PR, but the change of hands of the repo & the rest of life appears to have gotten in the way.

I'm re-submitting this PR with:

  • The merge conflicts with main resolved
  • An offer to make improvements and changes where they're requested by the go-viper team

Fixes #19
Fixes #125

@joshriverscambia2019
Copy link

I am impacted by this issue as well, and currently need to maintain a vendored copy of the library which includes this patch in order to solve for my use cases.

@ioreilly
Copy link

ioreilly commented Oct 8, 2025

+1

@takanuva15
Copy link

@sagikazarmark Hi, can you provide a review so we can merge this PR?

@sagikazarmark
Copy link
Member

Looks good to me, thanks @jphastings !

I'll run the tests later locally, because CI is stuck. But I don't expect any issues and will merge it soon.

@jphastings
Copy link
Author

jphastings commented Dec 9, 2025

Thanks! Don't hesitate to let me know if it needs any extra work 😊

Copy link
Member

@sagikazarmark sagikazarmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again!

@sagikazarmark sagikazarmark merged commit 541cf33 into go-viper:main Dec 9, 2025
@jphastings jphastings deleted the fix-slice-deep-map branch December 9, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lists of nested structures aren't encoded Mapstructure tags are ignored on slice struct items

6 participants