Browse Source

reflect: set Index field in Field()

pull/3548/head
Damian Gryski 2 years ago
committed by Ayke
parent
commit
ad9f790dfc
  1. 1
      src/reflect/type.go

1
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},
}
}

Loading…
Cancel
Save