tablewriter icon indicating copy to clipboard operation
tablewriter copied to clipboard

example2 Code error

Open stevenlee87 opened this issue 1 year ago • 0 comments

Example 2 - Without Border / Footer / Bulk Append data := [][]string{ []string{"1/1/2014", "Domain name", "2233", "$10.98"}, []string{"1/1/2014", "January Hosting", "2233", "$54.95"}, []string{"1/4/2014", "February Hosting", "2233", "$51.00"}, []string{"1/4/2014", "February Extra Bandwidth", "2233", "$30.00"}, }

table := tablewriter.NewWriter(os.Stdout) table.SetHeader([]string{"Date", "Description", "CV2", "Amount"}) table.SetFooter([]string{"", "", "Total", "$146.93"}) // Add Footer table.EnableBorder(false) // Set Border to false table.AppendBulk(data) // Add Bulk Data table.Render()

The correct code should be: table.SetBorder(false) // Set Border to false

not this: table.EnableBorder(false) // Set Border to false

stevenlee87 avatar Aug 31 '23 09:08 stevenlee87