Closed frebib closed 2 years ago
So this is apparently a 1.17 feature 🤔
Looks beautiful, thanks. How much do I have to pay to add a simple test? =D
Sorry for the long delay in merging. If someone would like to write a test for this situation, it would certainly be appreciated.
Unexported fields should be ignored when mapping structs from Golang to mcl, as this avoids issues where certain structs cannot be used in mcl representation due to their structure that may be incompatible with conversion. Disallowing private fields allows those to still be included in the struct but ignored when mapping the types, allowing the mcl representation of the type to stil be valid
Resolves: https://github.com/purpleidea/mgmt/issues/684 Signed-off-by: Joe Groocock me@frebib.net