From faaace938dd72610c32ac0e4bdbc67ab08fd9f75 Mon Sep 17 00:00:00 2001 From: Andrei Avram Date: Sun, 18 Nov 2018 22:00:52 +0200 Subject: [PATCH] Add documentation. --- doc.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc.go b/doc.go index 64cbcdf..4c4cbf3 100644 --- a/doc.go +++ b/doc.go @@ -245,6 +245,14 @@ ensures the value is not nil. Usage: required +NotBlank + +This validates that the value is not blank or with length zero. +For strings ensures they do not contain only spaces. For channels, maps, slices and arrays +ensures they don't have zero length. For others, the "required" validation is used. + + Usage: notblank + Is Default This validates that the value is the default value and is almost the