internal/reflectlite, reflect: handle different StructField

This commit is contained in:
Randy Reddig
2025-03-08 15:45:37 -08:00
committed by Ron Evans
parent 99a618385b
commit c8d0b87a67
4 changed files with 74 additions and 6 deletions
+1 -1
View File
@@ -294,7 +294,6 @@ func (t *RawType) String() string {
}
return s
}
switch t.Kind() {
case Chan:
elem := t.elem().String()
@@ -977,6 +976,7 @@ func (t *RawType) FieldByIndex(index []int) StructField {
}
// A StructField describes a single field in a struct.
// This must be kept in sync with [reflect.StructField].
type StructField struct {
// Name indicates the field name.
Name string