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

可以加入一些别的类型的上下界判断吗 #7

Open
Code92007 opened this issue Jan 27, 2021 · 1 comment
Open

可以加入一些别的类型的上下界判断吗 #7

Code92007 opened this issue Jan 27, 2021 · 1 comment

Comments

@Code92007
Copy link

可以加入一些别的类型的上下界判断吗,比如float=1,5,或者能告诉一下别的类型的上下界判断方法是啥么,我看那个readme的第一种没太看懂,测试脚本里也没有这种case

@smokezl
Copy link
Owner

smokezl commented Jan 28, 2021

现有验证的支持参照,
https://github.com/smokezl/govalidators#%E7%8E%B0%E6%9C%89%E9%AA%8C%E8%AF%81%E5%99%A8%E4%BB%8B%E7%BB%8D
目前 float 这种验证类型没有支持,后期会考虑加上,可以先自定义实现一个,参照
https://github.com/smokezl/govalidators#%E8%87%AA%E5%AE%9A%E4%B9%89%E9%AA%8C%E8%AF%81%E5%99%A8

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

No branches or pull requests

2 participants