Documentation
¶
Overview ¶
Costum validator for json request
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BookableDate validator.Func = func(fl validator.FieldLevel) bool { date, ok := fl.Field().Interface().(time.Time) if ok { today := time.Now() if today.After(date) { return false } } return true }
View Source
var IsCurrency validator.Func = func(fl validator.FieldLevel) bool { currency, ok := fl.Field().Interface().(string) if ok && util.CheckCurrencySupport(currency) { return true } return false }
Currency check
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.