MCPcopy Create free account
hub / github.com/cel-expr/cel-go / exercise4

Function exercise4

codelab/codelab.go:91–95  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

89// Declare a `contains` member function on map types that returns a boolean
90// indicating whether the map contains the key-value pair.
91func 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//

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected