Stub out reflect.Type FieldByIndex
Этот коммит содержится в:
родитель
3dbc4d5210
коммит
62594004c6
1 изменённых файлов: 5 добавлений и 1 удалений
|
@ -295,7 +295,7 @@ type Type interface {
|
||||||
// to the index sequence. It is equivalent to calling Field
|
// to the index sequence. It is equivalent to calling Field
|
||||||
// successively for each index i.
|
// successively for each index i.
|
||||||
// It panics if the type's Kind is not Struct.
|
// It panics if the type's Kind is not Struct.
|
||||||
//FieldByIndex(index []int) StructField
|
FieldByIndex(index []int) StructField
|
||||||
|
|
||||||
// FieldByName returns the struct field with the given name
|
// FieldByName returns the struct field with the given name
|
||||||
// and a boolean indicating if the field was found.
|
// and a boolean indicating if the field was found.
|
||||||
|
@ -761,6 +761,10 @@ func (t rawType) FieldByName(name string) (StructField, bool) {
|
||||||
panic("unimplemented: (reflect.Type).FieldByName()")
|
panic("unimplemented: (reflect.Type).FieldByName()")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (t rawType) FieldByIndex(index []int) StructField {
|
||||||
|
panic("unimplemented: (reflect.Type).FieldByIndex()")
|
||||||
|
}
|
||||||
|
|
||||||
// A StructField describes a single field in a struct.
|
// A StructField describes a single field in a struct.
|
||||||
type StructField struct {
|
type StructField struct {
|
||||||
// Name indicates the field name.
|
// Name indicates the field name.
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче