Skip to content

fix: Prioritize TextMarshaler for argument serialization (#3139) #3445

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

Conversation

ostheperson
Copy link

Fixes: #3139

  • Ensures types implementing both TextMarshaler and BinaryMarshaler are marshaled as text.
  • Also required reordering net.IP case to prevent string conversion due to added case.

* Ensures types implementing both TextMarshaler and BinaryMarshaler are marshaled as text.

* Also required reordering net.IP case to prevent string conversion due to added case.
* Ensures types implementing both TextMarshaler and BinaryMarshaler are marshaled as text.

* Also required reordering net.IP case to prevent string conversion due to added case.
@ndyakov
Copy link
Member

ndyakov commented Jul 24, 2025

Hello @ostheperson and thank you for the contribution. This looks like it should work, but has the possibility to be a breaking change for users that are currently using with a type implemented by both TextMarshaler and BinaryMarshaler. I will label it for the next major version.

@ostheperson
Copy link
Author

understood

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't get UUID with Scan()
2 participants