Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support plain serialization for alias of aliases #71

Open
nmiyake opened this issue Jul 16, 2019 · 0 comments
Open

Support plain serialization for alias of aliases #71

nmiyake opened this issue Jul 16, 2019 · 0 comments

Comments

@nmiyake
Copy link
Contributor

nmiyake commented Jul 16, 2019

What happened?

  • Define an alias type that resolves to another alias type that resolves to a primitive that defines PLAIN serialization (for example, rid)
  • Generate Go code
  • The generated code for the alias of the alias does not define a String() method, which means that PLAIN serialization fails (it outputs the struct form of rid instead of the string representation)

What did you want to happen?

  • The generated code for the alias of the alias should generate a String() method that converts the receiver to the type it aliases and call String() on that type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant