The general process of scalegen is:
- Scan a package for tags for which types it should generate encode and decode methods
- Generate empty
EncodeScale and DecodeScale methods.
- Fill the methods according to the type definition
Code generation fails if the code doesn't compile during any of those steps. Step 1 should work without the code being free of compile errors. This would allow to delete xxx_scale.go files and regenerate them with scalegen. At the moment this fails because then the specified types don't implement the interfaces necessary to be encoded or decoded, causing compile errors.
The general process of scalegen is:
EncodeScaleandDecodeScalemethods.Code generation fails if the code doesn't compile during any of those steps. Step 1 should work without the code being free of compile errors. This would allow to delete
xxx_scale.gofiles and regenerate them withscalegen. At the moment this fails because then the specified types don't implement the interfaces necessary to be encoded or decoded, causing compile errors.