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

Function exercise7

codelab/codelab.go:122–126  ·  view source on GitHub ↗

exercise7 introduces macros for dealing with repeated fields and maps. Determine whether the `jwt.extra_claims` has at least one key that starts with the `group` prefix, and ensure that all group-like keys have list values containing only strings that end with '@acme.co`.

()

Source from the content-addressed store, hash-verified

120// with the `group` prefix, and ensure that all group-like keys have list
121// values containing only strings that end with '@acme.co`.
122func exercise7() {
123 fmt.Println("=== Exercise 7: Macros ===")
124
125 fmt.Println()
126}
127
128// exercise8 covers some useful features of CEL-Go which can be used to
129// improve performance and better understand evaluation behavior.

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected