|
|
@ -77,8 +77,6 @@ type cField struct { |
|
|
|
cTags *cTag |
|
|
|
cTags *cTag |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TODO: investigate using enum instead of so many booleans, may be faster
|
|
|
|
|
|
|
|
// but let's get the new cache system working first
|
|
|
|
|
|
|
|
type cTag struct { |
|
|
|
type cTag struct { |
|
|
|
tag string |
|
|
|
tag string |
|
|
|
aliasTag string |
|
|
|
aliasTag string |
|
|
@ -91,8 +89,6 @@ type cTag struct { |
|
|
|
next *cTag |
|
|
|
next *cTag |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TODO: eliminate get and set functions from cache, they are pure overhead for nicer syntax.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (v *Validate) extractStructCache(current reflect.Value, sName string) *cStruct { |
|
|
|
func (v *Validate) extractStructCache(current reflect.Value, sName string) *cStruct { |
|
|
|
|
|
|
|
|
|
|
|
v.structCache.lock.Lock() |
|
|
|
v.structCache.lock.Lock() |
|
|
|