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

Function exercise2

codelab/codelab.go:66–70  ·  view source on GitHub ↗

exercise2 shows how to declare and use variables in expressions. Given a `request` of type `google.rpc.context.AttributeContext.Request` determine whether a specific auth claim is set.

()

Source from the content-addressed store, hash-verified

64// Given a `request` of type `google.rpc.context.AttributeContext.Request`
65// determine whether a specific auth claim is set.
66func exercise2() {
67 fmt.Println("=== Exercise 2: Variables ===")
68
69 fmt.Println()
70}
71
72// exercise3 demonstrates how CEL's commutative logical operators work.
73//

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected