Documentation
¶
Overview ¶
Package tabletool will manage table utils like generating a table
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTable ¶
func GenerateTable(writer io.Writer, header []string, rows [][]string, opts Option) *tablewriter.Table
GenerateTable is a tool to generate a *tablewriter.Table.
Types ¶
type Option ¶
type Option struct { // Limit is the number of rows to show in the result (table format only) Limit int // WithBorder is whether to generate table with border WithBorder bool // WithRowLine is whether to generate table with row line WithRowLine bool }
Option is the option used for table generation.
Click to show internal directories.
Click to hide internal directories.