Skip to content

support scanning into all numeric types#58

Merged
RaduBerinde merged 1 commit intomasterfrom
scan-more-types
Sep 17, 2025
Merged

support scanning into all numeric types#58
RaduBerinde merged 1 commit intomasterfrom
scan-more-types

Conversation

@RaduBerinde
Copy link
Member

@RaduBerinde RaduBerinde commented Sep 17, 2025

Use reflection to support scanning into any numeric types, including named types that have an underlying numeric type.


This change is Reviewable

@RaduBerinde RaduBerinde requested review from jbowens and tbg September 17, 2025 15:44
Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I assume there's at least rudimentary test coverage of this through some existing test.

@RaduBerinde
Copy link
Member Author

Nice! I assume there's at least rudimentary test coverage of this through some existing test.

Yes, we test the types we were supporting before which is decent coverage.

Use reflection to support scanning into any numeric types, including
named types that have an underlying numeric type.
@RaduBerinde
Copy link
Member Author

Added a test for int64

Copy link
Contributor

@jbowens jbowens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

nice!

@jbowens reviewed 1 of 1 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @RaduBerinde)

@RaduBerinde
Copy link
Member Author

TFTRs!

@RaduBerinde RaduBerinde merged commit a021364 into master Sep 17, 2025
13 checks passed
@RaduBerinde RaduBerinde deleted the scan-more-types branch September 17, 2025 18:14
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

Successfully merging this pull request may close these issues.

3 participants