MacroDocs configures a list of strings into a multiline description for the macro.
(docs ...string)
| 29 | |
| 30 | // MacroDocs configures a list of strings into a multiline description for the macro. |
| 31 | func MacroDocs(docs ...string) MacroOpt { |
| 32 | return func(m *macro) *macro { |
| 33 | m.doc = common.MultilineDescription(docs...) |
| 34 | return m |
| 35 | } |
| 36 | } |
| 37 | |
| 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. |