MCPcopy Index your code
hub / github.com/pterm/pterm / HeaderPrinter

Struct HeaderPrinter

header_printer.go:26–32  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

24// A header is printed as a big box with text in it.
25// Can be used as title screens or section separator.
26type 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
35func (p HeaderPrinter) WithTextStyle(style *Style) *HeaderPrinter {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected