mennanov / fieldmask-utils

Protobuf Field Mask Go utils
MIT License
229 stars 26 forks source link

Add a ut for StructToMap #31

Closed chensanle closed 1 year ago

chensanle commented 1 year ago

Our targets is "Copy from any Go struct to any compatible Go struct with a field mask applied", but when the struct has an interface type, it seems not work.

I write a demo by ut to describe the rare case. Please help me check this demo when you have time, thank you~

mennanov commented 1 year ago

Please, try this https://github.com/mennanov/fieldmask-utils/pull/34 and let me know if it works for you

mennanov commented 1 year ago

This should now be fixed in the new release: https://github.com/mennanov/fieldmask-utils/releases/tag/v1.0.0