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

Function MacroExamples

parser/macro.go:40–45  ·  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

38// MacroExamples configures a list of examples, either as a string or common.MultilineString,
39// into an example set to be provided with the macro Documentation() call.
40func MacroExamples(examples ...string) MacroOpt {
41 return func(m *macro) *macro {
42 m.examples = examples
43 return m
44 }
45}
46
47// NewGlobalMacro creates a Macro for a global function with the specified arg count.
48func NewGlobalMacro(function string, argCount int, expander MacroExpander, opts ...MacroOpt) Macro {

Callers 4

MacroExamplesFunction · 0.92
macro.goFile · 0.70
TestReceiverVarArgMacroFunction · 0.70
TestDocumentationFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestReceiverVarArgMacroFunction · 0.56
TestDocumentationFunction · 0.56