WithLeftAlignment returns a new TablePrinter with left alignment.
(b ...bool)
| 120 | |
| 121 | // WithLeftAlignment returns a new TablePrinter with left alignment. |
| 122 | func (p TablePrinter) WithLeftAlignment(b ...bool) *TablePrinter { |
| 123 | b2 := internal.WithBoolean(b) |
| 124 | p.LeftAlignment = b2 |
| 125 | p.RightAlignment = false |
| 126 | return &p |
| 127 | } |
| 128 | |
| 129 | // WithRightAlignment returns a new TablePrinter with right alignment. |
| 130 | func (p TablePrinter) WithRightAlignment(b ...bool) *TablePrinter { |