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

Function function

common/stdlib/standard.go:913–919  ·  view source on GitHub ↗
(name string, opts ...decls.FunctionOpt)

Source from the content-addressed store, hash-verified

911}
912
913func function(name string, opts ...decls.FunctionOpt) *decls.FunctionDecl {
914 fn, err := decls.NewFunction(name, opts...)
915 if err != nil {
916 panic(err)
917 }
918 return fn
919}
920
921func argTypes(args ...*types.Type) []*types.Type {
922 return args

Callers 1

initFunction · 0.85

Calls 1

NewFunctionFunction · 0.92

Tested by

no test coverage detected