WithStyle adds a style to the printer.
(style *Style)
| 19 | |
| 20 | // WithStyle adds a style to the printer. |
| 21 | func (p BasicTextPrinter) WithStyle(style *Style) *BasicTextPrinter { |
| 22 | p.Style = style |
| 23 | return &p |
| 24 | } |
| 25 | |
| 26 | func (p BasicTextPrinter) WithWriter(writer io.Writer) *BasicTextPrinter { |
| 27 | p.Writer = writer |
no outgoing calls