We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Do not silently ignore out of range values for options. Instead, panic.
The text was updated successfully, but these errors were encountered:
yes, you are right. It has been fixed
Sorry, something went wrong.
Well, validation should happen earlier, out of the Option function.
Option
func BucketsCount(v int) Option { if v < 1 { panic("BucketsCount: value out of range") } return func(o *Options) { o.bucketsCount = v } }
Sorry for being careless. You're so careful. Haha
No branches or pull requests
Do not silently ignore out of range values for options. Instead, panic.
The text was updated successfully, but these errors were encountered: