ReceiverMacro creates a Macro for a receiver function matching the specified arg count.
(function string, argCount int, factory MacroFactory, opts ...MacroOpt)
| 163 | |
| 164 | // ReceiverMacro creates a Macro for a receiver function matching the specified arg count. |
| 165 | func ReceiverMacro(function string, argCount int, factory MacroFactory, opts ...MacroOpt) Macro { |
| 166 | return parser.NewReceiverMacro(function, argCount, factory, opts...) |
| 167 | } |
| 168 | |
| 169 | // GlobalVarArgMacro creates a Macro for a global function with a variable arg count. |
| 170 | func GlobalVarArgMacro(function string, factory MacroFactory, opts ...MacroOpt) Macro { |