Update doc for unique=field

pull/496/head
Shi Han NG 5 years ago
parent d04a036fb5
commit 8efe088678
No known key found for this signature in database
GPG Key ID: 3E9FA195E69C9A6D
  1. 6
      doc.go

@ -585,9 +585,15 @@ Unique
For arrays & slices, unique will ensure that there are no duplicates.
For maps, unique will ensure that there are no duplicate values.
For slices of struct, unique will ensure that there are no duplicate values
in a field of the struct specified via a parameter.
// For arrays, slices, and maps:
Usage: unique
// For slices of struct:
Usage: unique=field
Alpha Only
This validates that a string value contains ASCII alpha characters only

Loading…
Cancel
Save