Closed right-mouse closed 2 years ago
When unmarshaling or recomposing to a struct, if a key matching a private field is found, the private field is attempted to be set resulting in a panic:
reflect: reflect.Value.Set using value obtained using unexported field
Playground demonstration: https://go.dev/play/p/r6oam713GJo
Please try the "respect-private" branch.
Looks to be working as expected on that branch.
Thanks
Released
Thanks for the quick fix.
When unmarshaling or recomposing to a struct, if a key matching a private field is found, the private field is attempted to be set resulting in a panic:
Playground demonstration: https://go.dev/play/p/r6oam713GJo