MCPcopy
hub / github.com/pterm/pterm / BoxPrinter

Struct BoxPrinter

box_printer.go:14–35  ·  view source on GitHub ↗

BoxPrinter is able to render a box around printables.

Source from the content-addressed store, hash-verified

12
13// BoxPrinter is able to render a box around printables.
14type BoxPrinter struct {
15 Title string
16 TitleTopLeft bool
17 TitleTopRight bool
18 TitleTopCenter bool
19 TitleBottomLeft bool
20 TitleBottomRight bool
21 TitleBottomCenter bool
22 TextStyle *Style
23 VerticalString string
24 BoxStyle *Style
25 HorizontalString string
26 TopRightCornerString string
27 TopLeftCornerString string
28 BottomLeftCornerString string
29 BottomRightCornerString string
30 TopPadding int
31 BottomPadding int
32 RightPadding int
33 LeftPadding int
34 Writer io.Writer
35}
36
37// DefaultBox is the default BoxPrinter.
38var DefaultBox = BoxPrinter{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected