Versions in this module Expand all Collapse all v0 v0.0.1 Nov 2, 2019 Changes in this version + const DefaultTabSize + func ByteCountInString(s string) int + func PadWithBytes(s string, c byte, nleft, nright int) string + func RepeatByte(c byte, n int) []byte + func TrimRight(row []string) []string + type Fragments []*fragment + func Fragmentize(intf interface{}) Fragments + func FragmentizeMultiLine(str string) Fragments + func FragmentizeStr(str string) Fragments + func JoinFragments(items interface{}, separator string) Fragments + func (ff Fragments) CommonIndent() int + func (ff Fragments) Merge(tabsize int) string + func (ff Fragments) RemoveCommonIndent() + type Grid [][]string + func GridWrapN(segments []string, ncolumns int) Grid + func (g *Grid) Append(cells ...string) + func (g *Grid) Insert(beforerow int, cells ...string) + func (g Grid) Collapse(colsep string) (lines []string) + func (g Grid) ColumnByteWidth(colindex int) int + func (g Grid) ColumnByteWidths() []int + func (g Grid) ColumnRuneWidth(colindex int) int + func (g Grid) ColumnRuneWidths() []int + func (g Grid) ColumnWidth(colindex int, f func(string) int) int + func (g Grid) ColumnWidths(f func(s string) int) []int + func (g Grid) Columnize() + func (g Grid) ProcessAll(cellfunc func(s string) string) + func (g Grid) ProcessColumn(colindex int, cellfunc func(string) string) + func (g Grid) TrimRows() + type Itemizer struct + Fmt string + Post string + Pre string + Sep string + func (z Itemizer) Itemize(items interface{}) Fragments + type StringFilter func(string) string + func StringFormatter(f string) StringFilter + func (f StringFilter) ProcessStrings(ss []string) []string + type Template []*token + func NewTemplate(s string) Template + func NewTemplet(s string) Template + func (t Template) Filter(arg Fragments) Fragments + func (t Template) Replace(bindings map[string]interface{}) Fragments