SectionPrinter prints a new section title. It can be used to structure longer text, or different chapters of your program.
| 18 | // SectionPrinter prints a new section title. |
| 19 | // It can be used to structure longer text, or different chapters of your program. |
| 20 | type SectionPrinter struct { |
| 21 | Style *Style |
| 22 | Level int |
| 23 | IndentCharacter string |
| 24 | TopPadding int |
| 25 | BottomPadding int |
| 26 | Writer io.Writer |
| 27 | } |
| 28 | |
| 29 | // WithStyle returns a new SectionPrinter with a specific style. |
| 30 | func (p SectionPrinter) WithStyle(style *Style) *SectionPrinter { |
nothing calls this directly
no outgoing calls
no test coverage detected