columnize

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2017 License: GPL-3.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL