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)
| 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. |
| 155 | func 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. |
| 160 | func GlobalMacro(function string, argCount int, factory MacroFactory, opts ...MacroOpt) Macro { |