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 bf7dff7 commit dc3312cCopy full SHA for dc3312c
structs.go
@@ -558,6 +558,7 @@ func (s *Struct) nested(val reflect.Value) interface{} {
558
// TODO(arslan): should this be optional?
559
// do not iterate of non struct types, just pass the value. Ie: []int,
560
// []string, co... We only iterate further if it's a struct.
561
+ // i.e []foo or []*foo
562
if val.Type().Elem().Kind() != reflect.Struct &&
563
!(val.Type().Elem().Kind() == reflect.Ptr &&
564
val.Type().Elem().Elem().Kind() == reflect.Struct) {
0 commit comments