Add reflect.Value.FieldByIndexErr stub

Этот коммит содержится в:
Elliott Sales de Andrade 2022-03-21 03:29:53 -04:00 коммит произвёл Ron Evans
родитель 234234af15
коммит f159573975

Просмотреть файл

@ -861,6 +861,11 @@ func (v Value) FieldByIndex(index []int) Value {
panic("unimplemented: (reflect.Value).FieldByIndex()")
}
// FieldByIndexErr returns the nested field corresponding to index.
func (v Value) FieldByIndexErr(index []int) (Value, error) {
return Value{}, &ValueError{Method: "FieldByIndexErr"}
}
func (v Value) FieldByName(name string) Value {
panic("unimplemented: (reflect.Value).FieldByName()")
}