WithCenter centers the AreaPrinter content to the terminal.
(b ...bool)
| 44 | |
| 45 | // WithCenter centers the AreaPrinter content to the terminal. |
| 46 | func (p AreaPrinter) WithCenter(b ...bool) *AreaPrinter { |
| 47 | p.Center = internal.WithBoolean(b) |
| 48 | return &p |
| 49 | } |
| 50 | |
| 51 | // SetWriter sets the writer for the AreaPrinter. |
| 52 | func (p *AreaPrinter) SetWriter(writer io.Writer) { |