examples
examples copied to clipboard
hi , where can I get explanation about "binding:"gtfield=CheckIn"
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.Time
form:"check_out" binding:"required,gtfield=CheckIn" time_format:"2006-01-02" }
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.