reflect: set Index field in Field()

This commit is contained in:
Damian Gryski
2023-03-06 16:50:51 -08:00
committed by Ayke
parent f42d8b3056
commit ad9f790dfc
+1
View File
@@ -567,6 +567,7 @@ func (t *rawType) Field(i int) StructField {
Tag: field.Tag,
Anonymous: field.Anonymous,
Offset: field.Offset,
Index: []int{i},
}
}