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

Validating int types #161

Open
Dilbar97 opened this issue Dec 15, 2021 · 1 comment
Open

Validating int types #161

Dilbar97 opened this issue Dec 15, 2021 · 1 comment

Comments

@Dilbar97
Copy link

is it possible to check the number for more than zero?

@yagikota
Copy link

@Dilbar97
You can use validation.Min(0).Exclusive().

https://github.com/go-ozzo/ozzo-validation/blob/master/minmax.go#L39

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