diff --git a/examples/custom-validation/server.go b/examples/custom-validation/server.go index fd47cff4..9238200b 100644 --- a/examples/custom-validation/server.go +++ b/examples/custom-validation/server.go @@ -10,7 +10,7 @@ import ( "gopkg.in/go-playground/validator.v8" ) -// Booking contains object which need to bind and validate data. +// Booking contains binded and validated data. type Booking struct { CheckIn time.Time `form:"check_in" binding:"required,bookabledate" time_format:"2006-01-02"` CheckOut time.Time `form:"check_out" binding:"required,gtfield=CheckIn" time_format:"2006-01-02"`