-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
codecgen: Honor name from struct tag during encoding, and support une…
…xported types. To support unexported types, we separate the temporary main package file from the package-level file. This way, the package-level file can reference the unexported types, and just export a method which can be called by the main package file. In addition, we use the field name from the struct tag (structfieldinfo.encName) when encoding structs. We also update the GenVersion as fundamental codecgen changes happened. This way, users will be forced to update their generated code when using new version of codec. Fixes #60 Fixes #61
- Loading branch information
Showing
3 changed files
with
65 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters