We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f60426 commit e73ec5fCopy full SHA for e73ec5f
doc.go
@@ -587,9 +587,15 @@ Unique
587
588
For arrays & slices, unique will ensure that there are no duplicates.
589
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.
592
593
+ // For arrays, slices, and maps:
594
Usage: unique
595
596
+ // For slices of struct:
597
+ Usage: unique=field
598
+
599
Alpha Only
600
601
This validates that a string value contains ASCII alpha characters only
0 commit comments