Fix validation logic and make code more readable

This commit is contained in:
2024-12-31 00:19:53 +01:00
parent 7beadf1538
commit 57bd72506b
2 changed files with 17 additions and 5 deletions

View File

@ -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)
}