From ea9cb424fd03b97a607cb5f6b8205e4181840fda Mon Sep 17 00:00:00 2001 From: Noi Bar Date: Thu, 28 Jun 2018 23:28:43 +0300 Subject: [PATCH] doc: add file validation documentation --- doc.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc.go b/doc.go index be93d79..320253a 100644 --- a/doc.go +++ b/doc.go @@ -587,6 +587,14 @@ does any email provider accept all posibilities. Usage: email +File path + +This validates that a string value contains a valid file path and that +the file exists on the machine. +This is done using os.Stat, which is a platform independent function. + + Usage: file + URL String This validates that a string value contains a valid url