Add reflect.Value.FieldByIndexErr stub

This commit is contained in:
Elliott Sales de Andrade
2022-03-21 03:29:53 -04:00
committed by Ron Evans
parent 234234af15
commit f159573975
+5
View File
@@ -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()")
}