Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Box ¶
type Box struct { TopRight string // TopRight Corner Symbols TopLeft string // TopLeft Corner Symbols Vertical string // Vertical Bar Symbols BottomRight string // BottomRight Corner Symbols BottomLeft string // BottomLeft Corner Symbols Horizontal string // Horizontal Bars Symbols Config // Box Config }
Box defines the design
func (Box) PrintAlingned ¶
PrintAligned prints the Box after realigning it
func (Box) PrintlnAligned ¶
PrintlnAligned prints the Box after realigning it
type Config ¶
type Config struct { Py int // Horizontal Padding Px int // Vertical Padding ContentAlign string // Content Alignment inside Box Type string // Box Type TitlePos string // Title Position TitleColor interface{} // Title Color ContentColor interface{} // Content Color Color interface{} // Box Color AllowWrapping bool // Flag to allow custom Content Wrapping WrappingLimit int // Wrap the Content upto the Limit }
Config is the configuration needed for the Box to be designed
Click to show internal directories.
Click to hide internal directories.