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

refactoring #48

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

refactoring #48

wants to merge 3 commits into from

Conversation

ccoVeille
Copy link
Owner

@ccoVeille ccoVeille commented Nov 17, 2024

  • chore: rewrite examples
  • chore: refactoring Number type is enough
  • chore: simplify code

This code is pretty similar to the one @ldemailly provided for
https://github.com/fortio/safecast

We worked at the same time on the same code, we came to distinct solutions.
His one was better and simpler than mine, so now I'm simply switching to
something highly inspired from his code.

Providing the value and error would be easier to test
@ccoVeille ccoVeille added the enhancement New feature or request label Nov 17, 2024
Copy link

codecov bot commented Nov 17, 2024

Codecov Report

Attention: Patch coverage is 97.93814% with 2 lines in your changes missing coverage. Please review.

Project coverage is 98.30%. Comparing base (a592ff0) to head (dfb2d31).

Files with missing lines Patch % Lines
asserters.go 96.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main      #48      +/-   ##
===========================================
- Coverage   100.00%   98.30%   -1.70%     
===========================================
  Files            3        3              
  Lines          185      118      -67     
===========================================
- Hits           185      116      -69     
- Misses           0        2       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

ccoVeille and others added 2 commits November 18, 2024 00:56
One code to rule them all.

This code is pretty similar to the one @ldemailly provided for
https://github.com/fortio/safecast

We worked at the same time on the same code, we came to distinct solutions.
His one was better and simpler than mine, so now I'm simply switching to
something highly inspired from his code.

Co-Authored-By: Laurent Demailly <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants