MCPcopy
hub / github.com/pterm/pterm / WithTitleTopLeft

Method WithTitleTopLeft

box_printer.go:61–70  ·  view source on GitHub ↗

WithTitleTopLeft returns a new box with a specific Title alignment.

(b ...bool)

Source from the content-addressed store, hash-verified

59
60// WithTitleTopLeft returns a new box with a specific Title alignment.
61func (p BoxPrinter) WithTitleTopLeft(b ...bool) *BoxPrinter {
62 b2 := internal.WithBoolean(b)
63 p.TitleTopLeft = b2
64 p.TitleTopRight = false
65 p.TitleTopCenter = false
66 p.TitleBottomLeft = false
67 p.TitleBottomRight = false
68 p.TitleBottomCenter = false
69 return &p
70}
71
72// WithTitleTopRight returns a new box with a specific Title alignment.
73func (p BoxPrinter) WithTitleTopRight(b ...bool) *BoxPrinter {

Callers 4

mainFunction · 0.80
mainFunction · 0.80

Calls 1

WithBooleanFunction · 0.92