Skip to content

Commit 70fa985

Browse files
Dean KarnDean Karn
authored andcommitted
Merge branch 'v2-development' into v2
2 parents 250bdad + dfab3df commit 70fa985

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,21 +194,29 @@ Here is a list of the current built in validators:
194194
parameter given. For strings, it checks that the string length
195195
is greater than that number of characters. For slices, arrays
196196
and maps it validates the number of items. (Usage: gt=10)
197+
For time.Time ensures the time value is greater than time.Now.UTC()
198+
(Usage: gt)
197199
198200
gte
199201
Same as 'min' above. Kept both to make terminology with 'len' easier
200202
(Usage: gte=10)
203+
For time.Time ensures the time value is greater than or equal to time.Now.UTC()
204+
(Usage: gte)
201205
202206
lt
203207
For numbers, this will ensure that the value is
204208
less than the parameter given. For strings, it checks
205209
that the string length is less than that number of characters.
206210
For slices, arrays, and maps it validates the number of items.
207211
(Usage: lt=10)
212+
For time.Time ensures the time value is less than time.Now.UTC()
213+
(Usage: lt)
208214
209215
lte
210216
Same as 'max' above. Kept both to make terminology with 'len' easier
211217
(Usage: lte=10)
218+
For time.Time ensures the time value is less than or equal to time.Now.UTC()
219+
(Usage: lte)
212220
213221
alpha
214222
This validates that a strings value contains alpha characters only

0 commit comments

Comments
 (0)