From 3b1d3c5ecfae800050de3178617c43e4a7e54762 Mon Sep 17 00:00:00 2001 From: thinkerou Date: Fri, 14 Sep 2018 10:50:11 +0800 Subject: [PATCH] update anonation --- examples/custom-validation/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"`