exercise4 demonstrates how to extend CEL with custom functions. Declare a `contains` member function on map types that returns a boolean indicating whether the map contains the key-value pair.
()
| 89 | // Declare a `contains` member function on map types that returns a boolean |
| 90 | // indicating whether the map contains the key-value pair. |
| 91 | func exercise4() { |
| 92 | fmt.Println("=== Exercise 4: Customization ===") |
| 93 | |
| 94 | fmt.Println() |
| 95 | } |
| 96 | |
| 97 | // exercise5 covers how to build complex objects as CEL literals. |
| 98 | // |