| 1 | // Code generated by 'yaegi extract errors'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.21 && !go1.22 |
| 4 | // +build go1.21,!go1.22 |
| 5 | |
| 6 | package stdlib |
| 7 | |
| 8 | import ( |
| 9 | "errors" |
| 10 | "reflect" |
| 11 | ) |
| 12 | |
| 13 | func init() { |
| 14 | Symbols["errors/errors"] = map[string]reflect.Value{ |
| 15 | // function, constant and variable definitions |
| 16 | "As": reflect.ValueOf(errors.As), |
| 17 | "ErrUnsupported": reflect.ValueOf(&errors.ErrUnsupported).Elem(), |
| 18 | "Is": reflect.ValueOf(errors.Is), |
| 19 | "Join": reflect.ValueOf(errors.Join), |
| 20 | "New": reflect.ValueOf(errors.New), |
| 21 | "Unwrap": reflect.ValueOf(errors.Unwrap), |
| 22 | } |
| 23 | } |