WithCenterEachLineSeparately centers each line separately.
(b ...bool)
| 23 | |
| 24 | // WithCenterEachLineSeparately centers each line separately. |
| 25 | func (p CenterPrinter) WithCenterEachLineSeparately(b ...bool) *CenterPrinter { |
| 26 | bt := internal.WithBoolean(b) |
| 27 | p.CenterEachLineSeparately = bt |
| 28 | return &p |
| 29 | } |
| 30 | |
| 31 | // WithWriter sets the custom Writer. |
| 32 | func (p CenterPrinter) WithWriter(writer io.Writer) *CenterPrinter { |