Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jan 8, 2021
1 parent ab61ec6 commit 90192b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,11 @@ func StringLength(val interface{}, minLen int, maxLen ...int) bool {
return RuneLength(val, minLen, maxLen...)
}

// check every element's length
// TODO func SliceItemLen(arr interface{}, minLen int, maxLen ...int)
// apply validator to each sub-element of the val(slice, map)
// TODO func Each(val interface{}, validator string, args ...interface{})

/*************************************************************
* global: date/time validators
*************************************************************/
Expand Down

0 comments on commit 90192b8

Please sign in to comment.