Registry / cli / landoop-tableprinter

landoop-tableprinter

JSON →
library0.0.0-20201125135848-89e81fc956e7gogounverified

A Go library for printing structured data as formatted tables.

go get github.com/landoop/tableprinter
INSTALL
IMPORT
SIG · LANDOOP-TABLEPRINT
L
landoop-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/landoop/tableprinter

Prints a slice of structs as a formatted table.

package main import ( "fmt" "os" "github.com/landoop/tableprinter" ) type Person struct { Name string `header:"Name"` Age int `header:"Age"` } func main() { printer := tableprinter.New(os.Stdout) printer.Print([]Person{{Name: "Alice", Age: 30}}) 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
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
landoop-tableprinter — go get landoop-tableprinter · libregistry