comment update for package gvalid

This commit is contained in:
John Guo
2021-12-26 23:17:33 +08:00
parent 079cf9d7b8
commit 14e96069f2

View File

@ -122,7 +122,9 @@ func (v *Validator) doCheckValue(ctx context.Context, in doCheckValueInput) Erro
customMsgMap[ruleKey] = strings.TrimSpace(msgArray[index])
}
// Custom rule handling.
// ===========================================================================================
// Custom rule handling
// ===========================================================================================
// 1. It firstly checks and uses the custom registered rules functions in the current Validator.
// 2. It secondly checks and uses the globally registered rules functions.
// 3. It finally checks and uses the build-in rules functions.