gogen-avro
gogen-avro copied to clipboard
Simplify union codegen
Don't generate union classes when a simple union contains only two elements, one of which is null. Instead, generate pointers to the types. (Golang built-in nullability)
https://github.com/actgardner/gogen-avro/issues/184
@actgardner Here is my first attempt at addressing the issue... any feedback is most welcome!
Hopefully this is a good first step towards a releasable feature/improvement.
N.B. In order to preserve the GenericRecord behaviour and keep its tests from failing I did need to add a genericMode
irProgram option
Hi @actgardner @frankgrimes97, this would be a great feature. Shall be this PR merged into master and released soon, please?
Initially I stumbled on this related but closed issue #40.
Thank you! Regards Tomas.
Hi @actgardner, any update on this PR? As Tomas stated, this would be highly beneficial.
Thanks!
Hello @actgardner, I also would find this a great improvement to the code generation.
Hi @actgardner, is this feature a possibility in the future?