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)
| 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. |
| 40 | func 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. |
| 48 | func NewGlobalMacro(function string, argCount int, expander MacroExpander, opts ...MacroOpt) Macro { |
no outgoing calls