MCPcopy
hub / github.com/pterm/pterm / WithTitle

Method WithTitle

box_printer.go:55–58  ·  view source on GitHub ↗

WithTitle returns a new box with a specific Title.

(str string)

Source from the content-addressed store, hash-verified

53
54// WithTitle returns a new box with a specific Title.
55func (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.
61func (p BoxPrinter) WithTitleTopLeft(b ...bool) *BoxPrinter {

Calls

no outgoing calls