Versions in this module Expand all Collapse all v1 v1.2.0 Mar 5, 2023 Changes in this version + const AccoladesStyleCount + const AccoladesStyleLastValue + const AccoladesStyleMaxIndex + const BoxStyleCount + const BoxStyleLastValue + const BoxStyleMaxIndex + const LabelAlignCount + const LabelAlignLastValue + const LabelAlignMaxIndex + const MultiStringsMaxWidth + type AccoladesStyle int + const AccoladesStyleAscii + const AccoladesStyleNone + const AccoladesStyleUnicode + func AccoladesStyleFromString(s string) (AccoladesStyle, error) + func (v AccoladesStyle) String() string + type BoxPattern struct + BottomBorder string + BottomLeftCorner string + BottomRightCorner string + LeftBorder string + RightBorder string + TopBorder string + TopLeftCorner string + TopRightCorner string + func GetBoxPattern(style BoxStyle) BoxPattern + type BoxSettings struct + BottomLabel string + BottomLabelAlign LabelAlign + TopLabel string + TopLabelAlign LabelAlign + Width int + type BoxStyle int + const BoxStyleBlocks + const BoxStyleBlocksDarkShade + const BoxStyleBlocksLightShade + const BoxStyleBlocksMediumShade + const BoxStyleBold + const BoxStyleDiamonds + const BoxStyleDots + const BoxStyleDoubleLine + const BoxStyleExtraBold + const BoxStyleExtraBoldRounded + const BoxStyleFantasy1 + const BoxStyleFantasy2 + const BoxStyleFantasy3 + const BoxStyleFantasy4 + const BoxStyleMaxBold + const BoxStyleNone + const BoxStyleSingleHDoubleV + const BoxStyleSingleLine + const BoxStyleSingleLineRounded + const BoxStyleSingleVDoubleH + const BoxStyleSpaceChar + func BoxStyleFromString(s string) (BoxStyle, error) + func (v BoxStyle) String() string + type LabelAlign int + const LabelAlignCenter + const LabelAlignLeft + const LabelAlignRight + func LabelAlignFromString(s string) (LabelAlign, error) + func (v LabelAlign) String() string + type Paragraph []string + func New(cap int) Paragraph + func NewFromString(s string) Paragraph + func NewFromStringSlice(s []string) (linesOut Paragraph) + func NewWithGivenLen(length int) Paragraph + func NewWithPresetContent(line string, count int) (linesOut Paragraph) + func (lines Paragraph) String() string + func (lines Paragraph) ToString(linesSeparator string) (result string) + func (lines Paragraph) Width() (width int) + func (lines Paragraph) WriteToFile(fileName string) (err error) + func (linesIn Paragraph) Accolades(style AccoladesStyle) (linesOut Paragraph) + func (linesIn Paragraph) Append(linesToAppend Paragraph) Paragraph + func (linesIn Paragraph) AutoAccolades(style AccoladesStyle) (linesOut Paragraph) + func (linesIn Paragraph) AutoBox(settings BoxSettings, pattern BoxPattern) Paragraph + func (linesIn Paragraph) Box(settings BoxSettings, pattern BoxPattern) (linesOut Paragraph) + func (linesIn Paragraph) Cut(maxWidth int) (linesOut Paragraph) + func (linesIn Paragraph) Limit(maxWidth int) (linesOut Paragraph) + func (linesIn Paragraph) Mustache(m map[string]interface{}) (linesOut Paragraph, err error) + func (linesIn Paragraph) MustacheNoErr(m map[string]interface{}) (linesOut Paragraph) + func (linesIn Paragraph) PadRight(fillPattern string, width int) (linesOut Paragraph) + func (linesIn Paragraph) Sort() Paragraph + func (linesIn Paragraph) Surround(left string, right string) (linesOut Paragraph)