HeaderPrinter contains the data used to craft a header. A header is printed as a big box with text in it. Can be used as title screens or section separator.
| 24 | // A header is printed as a big box with text in it. |
| 25 | // Can be used as title screens or section separator. |
| 26 | type HeaderPrinter struct { |
| 27 | TextStyle *Style |
| 28 | BackgroundStyle *Style |
| 29 | Margin int |
| 30 | FullWidth bool |
| 31 | Writer io.Writer |
| 32 | } |
| 33 | |
| 34 | // WithTextStyle returns a new HeaderPrinter with changed |
| 35 | func (p HeaderPrinter) WithTextStyle(style *Style) *HeaderPrinter { |
nothing calls this directly
no outgoing calls
no test coverage detected