From 8efe08867819de4bc3c0cee8f1d067dfaf4f6f0e Mon Sep 17 00:00:00 2001 From: Shi Han NG Date: Fri, 2 Aug 2019 20:42:47 +0900 Subject: [PATCH] Update doc for unique=field --- doc.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc.go b/doc.go index e0396cb..3161163 100644 --- a/doc.go +++ b/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