Sometimes you want to add some generic code, but only after the generator ran. E.g. when you want to have a variable that has an initialized converter impl.
var Converter Converter = &ConverterImpl{}
Having this inside the conversion interface will cause compile errors. This issue proposes a new setting called goverter:output:raw where you can define raw code that will be added to the generation file.
Sometimes you want to add some generic code, but only after the generator ran. E.g. when you want to have a variable that has an initialized converter impl.
Having this inside the conversion interface will cause compile errors. This issue proposes a new setting called
goverter:output:raw
where you can define raw code that will be added to the generation file.Example:
Please :+1: this issue if you like this functionality. If you have a specific use-case in mind, feel free to comment it.