diff --git a/src/reflect/type.go b/src/reflect/type.go index dfcc8b7e..45af9683 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -567,6 +567,7 @@ func (t *rawType) Field(i int) StructField { Tag: field.Tag, Anonymous: field.Anonymous, Offset: field.Offset, + Index: []int{i}, } }