Registry / cli / lensesio-tableprinter

lensesio-tableprinter

JSON →
library0.0.0-20201125135848-89e81fc956e7gogounverified

Package tableprinter provides a simple way to print structured data as formatted tables in the terminal.

go get github.com/lensesio/tableprinter
INSTALL
IMPORT
SIG · LENSESIO-TABLEPRIN
L
lensesio-tableprinter
cligov0.0.0-20201125135848-89e81fc956e7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tableprinter
github.com/lensesio/tableprinter

Prints a slice of structs as a formatted table.

package main import ( "fmt" "github.com/lensesio/tableprinter" ) type Person struct { Name string `header:"Name"` Age int `header:"Age"` } func main() { printer := tableprinter.New() printer.Print([]Person{{Name: "Alice", Age: 30}, {Name: "Bob", Age: 25}}) fmt.Println() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20201125135848-89e81fc956e7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources
lensesio-tableprinter — go get lensesio-tableprinter · libregistry