Documentation ¶
Index ¶
- func Justify(words []string, lineMax int) (result string)
- func SeparateLines(words []string, lineMax int) (line []string, rest []string)
- func SeparateWords(in string) []string
- func ToLeft(words []string, lineMax int) string
- func ToRight(words []string, lineMax int) string
- type BlockDef
- type BlockFormatter
- type FormatLineCB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeparateWords ¶
Types ¶
type BlockDef ¶
type BlockDef struct {
// contains filtered or unexported fields
}
func NewBlockDef ¶
func NewBlockDef(width int, lineFormatter FormatLineCB, lastLineFormatter FormatLineCB) BlockDef
type BlockFormatter ¶
type BlockFormatter struct {
// contains filtered or unexported fields
}
func NewBlockFormatter ¶
func NewBlockFormatter(io app.Output, width int, blocks ...BlockDef) BlockFormatter
func (BlockFormatter) PrintBlocks ¶
func (formatter BlockFormatter) PrintBlocks(contents ...string)
func (BlockFormatter) Println ¶
func (formatter BlockFormatter) Println()
type FormatLineCB ¶
Click to show internal directories.
Click to hide internal directories.