Registry / utility / google-cel-go

google-cel-go

JSON →
library0.28.1gogounverified

Implements the Common Expression Language (CEL) for evaluating expressions in Go applications.

go get github.com/google/cel-go
INSTALL
IMPORT
SIG · GOOGLE-CEL-GO
G
google-cel-go
utilitygov0.28.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cel
github.com/google/cel-go/cel

Evaluates a simple CEL expression.

package main import ( "fmt" "github.com/google/cel-go/cel" ) func main() { env, _ := cel.NewEnv() ast, _ := env.Compile("1 + 2") prg, _ := env.Program(ast) out, _, _ := prg.Eval(map[string]interface{}{}) fmt.Println(out) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.28.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
google-cel-go — go get google-cel-go · libregistry