Fix validation logic and make code more readable
This commit is contained in:
@ -60,6 +60,10 @@ func GreaterThan(value int, n int) bool {
|
||||
return value > n
|
||||
}
|
||||
|
||||
func GreaterThanOrEquals(value int, n int) bool {
|
||||
return value >= n
|
||||
}
|
||||
|
||||
func After(value time.Time, n time.Time) bool {
|
||||
return value.After(n)
|
||||
}
|
||||
|
Reference in New Issue
Block a user