We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ddc47 commit 8425d43Copy full SHA for 8425d43
validator.go
@@ -84,12 +84,12 @@ func Default() Validator {
84
return getGlobalValidator()
85
}
86
87
-// Register registers a validator method by name.
+// Register registers a validator method by name on the default validator.
88
func Register(name string, validator core.ValidatorFn) {
89
getGlobalValidator().Register(name, validator)
90
91
92
-// Validate validates fields of a structure, or structures of a map, slice or array.
+// Validate validates fields of a structure, or structures of a map, slice or array using the default validator.
93
func Validate(value interface{}) core.ErrorList {
94
return getGlobalValidator().Validate(value)
95
0 commit comments