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

Function function

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

Source from the content-addressed store, hash-verified

931}
932
933func function(name string, opts ...decls.FunctionOpt) *decls.FunctionDecl {
934 fn, err := decls.NewFunction(name, opts...)
935 if err != nil {
936 panic(err)
937 }
938 return fn
939}
940
941func argTypes(args ...*types.Type) []*types.Type {
942 return args

Callers 1

initStandardFunction · 0.85

Calls 1

NewFunctionFunction · 0.92

Tested by

no test coverage detected