main
v1.3.0
github.com/GiN-gonic/GIN/examples/custom-validation
Documentation
pkg.go.dev ↗Types
Booking
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"`
}