From 39ed31ee03a5e75a25d6874beec452bc37ba7845 Mon Sep 17 00:00:00 2001 From: Acho Arnold Date: Mon, 1 Jun 2020 13:01:39 +0200 Subject: [PATCH] Added `ValidateStruct` to list of fuctions Added `ValidateStruct` to the list of functions that are run with custom rules. --- doc/CUSTOM_RULE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/CUSTOM_RULE.md b/doc/CUSTOM_RULE.md index f8c4ab2..d9ff673 100644 --- a/doc/CUSTOM_RULE.md +++ b/doc/CUSTOM_RULE.md @@ -1,7 +1,7 @@ ### Validate with custom rule -You can register custom validation rules. This rule will work for both `Validate` and `ValidateJSON` method. You will get all the information you need to validate an input. +You can register custom validation rules. This rule will work for the `Validate`, `ValidateStruct` and `ValidateJSON` methods. You will get all the information you need to validate an input. ```go package main