WithTitle returns a new box with a specific Title.
(str string)
| 53 | |
| 54 | // WithTitle returns a new box with a specific Title. |
| 55 | func (p BoxPrinter) WithTitle(str string) *BoxPrinter { |
| 56 | p.Title = str |
| 57 | return &p |
| 58 | } |
| 59 | |
| 60 | // WithTitleTopLeft returns a new box with a specific Title alignment. |
| 61 | func (p BoxPrinter) WithTitleTopLeft(b ...bool) *BoxPrinter { |
no outgoing calls