-
Notifications
You must be signed in to change notification settings - Fork 3
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
#2 Support for Custom Ranges #4
#2 Support for Custom Ranges #4
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix conflicts with latest merge and it's good to go
…InRange func names
…fyCustomRangesForIntFloatDuration
9fc5419
to
0ba821a
Compare
what do you think @IvanGael ? I adapted your ideas to the new package organization (with methods instead of plain functions) |
Maybe add some tests before merging ? |
It seems you change a little bit the implementation. The functions Int, MustIntInRange, Bool, Duration, MustDurationInRange, Time, Float, MustFloatInRange, ..Etc have been removed in chaos.go Should I pull the latest changes from the main branch before adding some tests? |
Yea, Also the behavior has been adapted to avoid unnecessary redundancy : Range functions become Between |
…fyCustomRangesForIntFloatDuration
…ub.com/IvanGael/chaos into specifyCustomRangesForIntFloatDuration
Allow users to specify custom ranges for the Int, Float, and Duration functions instead of always starting at 0.