reflect: move StructField.Anonymous field to match upstream location
Этот коммит содержится в:
родитель
6768af91e7
коммит
b044d27dff
1 изменённых файлов: 2 добавлений и 2 удалений
|
@ -974,9 +974,9 @@ type StructField struct {
|
||||||
|
|
||||||
Type Type
|
Type Type
|
||||||
Tag StructTag // field tag string
|
Tag StructTag // field tag string
|
||||||
Anonymous bool
|
|
||||||
Offset uintptr
|
Offset uintptr
|
||||||
Index []int // index sequence for Type.FieldByIndex
|
Index []int // index sequence for Type.FieldByIndex
|
||||||
|
Anonymous bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsExported reports whether the field is exported.
|
// IsExported reports whether the field is exported.
|
||||||
|
@ -992,8 +992,8 @@ type rawStructField struct {
|
||||||
PkgPath string
|
PkgPath string
|
||||||
Type *rawType
|
Type *rawType
|
||||||
Tag StructTag
|
Tag StructTag
|
||||||
Anonymous bool
|
|
||||||
Offset uintptr
|
Offset uintptr
|
||||||
|
Anonymous bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// A StructTag is the tag string in a struct field.
|
// A StructTag is the tag string in a struct field.
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче