Skip to content

Commit e73ec5f

Browse files
shihanngDean Karn
authored andcommitted
Update doc for unique=field
1 parent 8f60426 commit e73ec5f

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
@@ -587,9 +587,15 @@ Unique
587587
588588
For arrays & slices, unique will ensure that there are no duplicates.
589589
For maps, unique will ensure that there are no duplicate values.
590+
For slices of struct, unique will ensure that there are no duplicate values
591+
in a field of the struct specified via a parameter.
590592
593+
// For arrays, slices, and maps:
591594
Usage: unique
592595
596+
// For slices of struct:
597+
Usage: unique=field
598+
593599
Alpha Only
594600
595601
This validates that a string value contains ASCII alpha characters only

0 commit comments

Comments
 (0)