NewReceiverMacro creates a Macro for a receiver function matching the specified arg count. Deprecated: use ReceiverMacro
(function string, argCount int, expander MacroExpander)
| 188 | // |
| 189 | // Deprecated: use ReceiverMacro |
| 190 | func NewReceiverMacro(function string, argCount int, expander MacroExpander) Macro { |
| 191 | expand := adaptingExpander{expander} |
| 192 | return parser.NewReceiverMacro(function, argCount, expand.Expander) |
| 193 | } |
| 194 | |
| 195 | // NewGlobalVarArgMacro creates a Macro for a global function with a variable arg count. |
| 196 | // |