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

hi , where can I get explanation about "binding:"gtfield=CheckIn" #35

Open
HePeng11 opened this issue Apr 22, 2020 · 1 comment
Open

Comments

@HePeng11
Copy link

as title, where can I get document about validate properties such as eqfield,nefield,gtefield etc...

type Booking struct { CheckIn time.Time form:"check_in" binding:"required" time_format:"2006-01-02"CheckOut time.Timeform:"check_out" binding:"required,gtfield=CheckIn" time_format:"2006-01-02" }

@escoffier
Copy link

Gin uses go-playground/validator/v10 for validation. You can find tags usage here:
https://godoc.org/github.com/go-playground/validator#hdr-Baked_In_Validators_and_Tags.

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