MCPcopy
hub / github.com/pterm/pterm / SectionPrinter

Struct SectionPrinter

section_printer.go:20–27  ·  view source on GitHub ↗

SectionPrinter prints a new section title. It can be used to structure longer text, or different chapters of your program.

Source from the content-addressed store, hash-verified

18// SectionPrinter prints a new section title.
19// It can be used to structure longer text, or different chapters of your program.
20type 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.
30func (p SectionPrinter) WithStyle(style *Style) *SectionPrinter {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected