creating an exported field
alphacentory opened this issue · comments
Is it possible to create a field if it is unsettable?
Can you give more detail ? You can only create fields when you define a struct. After that it's not possible anymore.
Ok, What I needed to be able to do is loop over two data structs. Compare one against other, and where different update. So if Struct1 has a field Struct2 doesn't, we create the field and assign a value.
Nope this is not possible. Structs are types that needs to be declared during compile time and can't be set in runtime.