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.