File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments