We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c2248a commit 6ffa5d1Copy full SHA for 6ffa5d1
validator.go
@@ -195,12 +195,14 @@ func New(tagName string, funcs map[string]Func) *Validate {
195
196
// SetTag sets tagName of the Validator to one of your choosing after creation
197
// perhaps to dodge a tag name conflict in a specific section of code
198
+// NOTE: this method is not thread-safe
199
func (v *Validate) SetTag(tagName string) {
200
v.tagName = tagName
201
}
202
203
// AddFunction adds a validation Func to a Validate's map of validators denoted by the key
204
// NOTE: if the key already exists, it will get replaced.
205
206
func (v *Validate) AddFunction(key string, f Func) error {
207
208
if len(key) == 0 {
0 commit comments