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

Function MacroExamples

cel/macro.go:155–157  ·  view source on GitHub ↗

MacroExamples configures a list of examples, either as a string or common.MultilineString, into an example set to be provided with the macro Documentation() call.

(examples ...string)

Source from the content-addressed store, hash-verified

153// MacroExamples configures a list of examples, either as a string or common.MultilineString,
154// into an example set to be provided with the macro Documentation() call.
155func MacroExamples(examples ...string) MacroOpt {
156 return parser.MacroExamples(examples...)
157}
158
159// GlobalMacro creates a Macro for a global function with the specified arg count.
160func GlobalMacro(function string, argCount int, factory MacroFactory, opts ...MacroOpt) Macro {

Callers 2

TestDocumentationFunction · 0.70
CompileOptionsMethod · 0.70

Calls 1

MacroExamplesFunction · 0.92

Tested by 1

TestDocumentationFunction · 0.56