NewReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count.
(function string, expander MacroExpander, opts ...MacroOpt)
| 83 | |
| 84 | // NewReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count. |
| 85 | func NewReceiverVarArgMacro(function string, expander MacroExpander, opts ...MacroOpt) Macro { |
| 86 | m := ¯o{ |
| 87 | function: function, |
| 88 | expander: expander, |
| 89 | receiverStyle: true, |
| 90 | varArgStyle: true} |
| 91 | for _, opt := range opts { |
| 92 | m = opt(m) |
| 93 | } |
| 94 | return m |
| 95 | } |
| 96 | |
| 97 | // Macro interface for describing the function signature to match and the MacroExpander to apply. |
| 98 | // |
no outgoing calls