Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Columnizer ¶
type Columnizer struct{}
Columnizer create columnes in plain text
Example ¶
clm := &Columnizer{}
output := clm.Columnize([]string{
"column1 | column2 | column 3",
"short | very long very long very long very long very long very long | whatever",
"hey | ho | let's go",
})
fmt.Println(output)
Output: column1 column2 column 3 short very long very long very long very long very long very long whatever hey ho let's go
func (*Columnizer) Columnize ¶
func (c *Columnizer) Columnize(rows []string) string
Columnize create columnes in plain text
Click to show internal directories.
Click to hide internal directories.