From aad3b6694ede55fb3e41abef2dd86efcddf8bfb3 Mon Sep 17 00:00:00 2001 From: Dmitry Zenovich Date: Mon, 9 Mar 2020 15:04:01 +0300 Subject: [PATCH] fix the documentation (any validations can be used on structs now) --- doc.go | 1 - 1 file changed, 1 deletion(-) diff --git a/doc.go b/doc.go index 291c629..5c07d03 100644 --- a/doc.go +++ b/doc.go @@ -170,7 +170,6 @@ When a field that is a nested struct is encountered, and contains this flag any validation on the nested struct will be run, but none of the nested struct fields will be validated. This is useful if inside of your program you know the struct will be valid, but need to verify it has been assigned. -NOTE: only "required" and "omitempty" can be used on a struct itself. Usage: structonly