You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
The general process of scalegen is:
EncodeScale
andDecodeScale
methods.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 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.The text was updated successfully, but these errors were encountered: