summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-playground/form/v4/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-playground/form/v4/cache.go')
-rw-r--r--vendor/github.com/go-playground/form/v4/cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/go-playground/form/v4/cache.go b/vendor/github.com/go-playground/form/v4/cache.go
index 47e5fce96..64e7d0e56 100644
--- a/vendor/github.com/go-playground/form/v4/cache.go
+++ b/vendor/github.com/go-playground/form/v4/cache.go
@@ -82,7 +82,7 @@ func (s *structCacheMap) parseStruct(mode Mode, current reflect.Value, key refle
typ := current.Type()
cs = &cachedStruct{fields: make([]cachedField, 0, 4)} // init 4, betting most structs decoding into have at aleast 4 fields.
- numFields := current.NumField()
+ numFields := typ.NumField()
var fld reflect.StructField
var name string