🔨 Set max table column with in config and response packages

This commit is contained in:
2024-09-10 21:04:13 +04:00
parent 3b30f2a64b
commit 94a74c64b7
3 changed files with 10 additions and 5 deletions

View File

@ -57,7 +57,10 @@ func (respones Responses) Print() {
t := table.NewWriter()
t.SetOutputMirror(os.Stdout)
t.SetStyle(table.StyleLight)
t.SetAllowedRowLength(125)
t.SetColumnConfigs([]table.ColumnConfig{
{Number: 1, WidthMax: 80},
})
t.AppendHeader(table.Row{
"Response",
"Count",