Skip to content

Commit 8efe088

Browse files
committed
Update doc for unique=field
1 parent d04a036 commit 8efe088

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,15 @@ Unique
585585
586586
For arrays & slices, unique will ensure that there are no duplicates.
587587
For maps, unique will ensure that there are no duplicate values.
588+
For slices of struct, unique will ensure that there are no duplicate values
589+
in a field of the struct specified via a parameter.
588590
591+
// For arrays, slices, and maps:
589592
Usage: unique
590593
594+
// For slices of struct:
595+
Usage: unique=field
596+
591597
Alpha Only
592598
593599
This validates that a string value contains ASCII alpha characters only

0 commit comments

Comments
 (0)