()
| 357 | } |
| 358 | |
| 359 | func ExampleAsFloat64_error() { |
| 360 | _, err := expr.Compile(`!!true`, expr.AsFloat64()) |
| 361 | |
| 362 | fmt.Printf("%v", err) |
| 363 | |
| 364 | // Output: expected float64, but got bool |
| 365 | } |
| 366 | |
| 367 | func ExampleWarnOnAny() { |
| 368 | // Arrays always have []any type. The expression return type is any. |