You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
I would like to be able to build the target struct that decode maps into across different contributing pieces that are only stitched together at runtime. My approach for doing this is something like this where Bar extends a config stack by adding a Bar element around the wrapped config contained within:
I would like to be able to build the target struct that decode maps into across different contributing pieces that are only stitched together at runtime. My approach for doing this is something like this where
Bar
extends a config stack by adding aBar
element around the wrapped config contained within:I'm using an anonymous interface as there is no anonymous struct. Unfortunately, mapstructure cannot decode squashed interfaces containing structs:
Source code is there:
mapstructure/mapstructure.go
Line 1221 in 5cc946f
Is that something that could be changed? Would be happy to look into a PR here.
The text was updated successfully, but these errors were encountered: