Support for duration validations
lovromazgon opened this issue · 0 comments
lovromazgon commented
Feature description
Validations that work on floats should work on durations as well (greater than, less than).
Example:
type Config struct {
MyDuration time.Duration `validate:"gt=1s,lt=5s"`
}