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

Function MacroDocs

parser/macro.go:31–36  ·  view source on GitHub ↗

MacroDocs configures a list of strings into a multiline description for the macro.

(docs ...string)

Source from the content-addressed store, hash-verified

29
30// MacroDocs configures a list of strings into a multiline description for the macro.
31func MacroDocs(docs ...string) MacroOpt {
32 return func(m *macro) *macro {
33 m.doc = common.MultilineDescription(docs...)
34 return m
35 }
36}
37
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.

Callers 4

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

Calls 1

MultilineDescriptionFunction · 0.92

Tested by 2

TestReceiverVarArgMacroFunction · 0.56
TestDocumentationFunction · 0.56