jayloop / table

Table is a Go module providing simple table formatting functions for command line applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

table

Table is a Go module providing simple table formatting functions for command line applications.

GoDoc Go Report

installation

go get -u github.com/jayloop/table

usage

t := table.New("key", "value")
t.FormatHeader(table.Format(table.HiYellow, table.Bold))
t.Precision(2, 1)
t.Row("a", 1)
t.Row("b", 2.0)
t.Row("c", 0.001)
t.Sort(1)
t.Print(os.Stdout)

About

Table is a Go module providing simple table formatting functions for command line applications.

License:MIT License


Languages

Language:Go 100.0%