From 9c31c8d387ea5185a0b332f6d03e70db84e99ea8 Mon Sep 17 00:00:00 2001 From: sakura1116vg Date: Fri, 24 Aug 2018 20:08:39 +0900 Subject: [PATCH] fix doc --- doc.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc.go b/doc.go index 6bd3c83..66f9f13 100644 --- a/doc.go +++ b/doc.go @@ -31,7 +31,7 @@ Custom Validation Functions Custom Validation functions can be added. Example: // Structure - func customFunc(fl FieldLevel) bool { + func customFunc(fl validator.FieldLevel) bool { if fl.Field().String() == "invalid" { return false @@ -589,12 +589,12 @@ does any email provider accept all posibilities. 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. +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