Table creates a new table with standardized styles.
()
| 15 | |
| 16 | // Table creates a new table with standardized styles. |
| 17 | func Table() table.Writer { |
| 18 | tableWriter := table.NewWriter() |
| 19 | tableWriter.Style().Box.PaddingLeft = "" |
| 20 | tableWriter.Style().Box.PaddingRight = " " |
| 21 | tableWriter.Style().Options.DrawBorder = false |
| 22 | tableWriter.Style().Options.SeparateHeader = false |
| 23 | tableWriter.Style().Options.SeparateColumns = false |
| 24 | return tableWriter |
| 25 | } |
| 26 | |
| 27 | // This type can be supplied as part of a slice to DisplayTable |
| 28 | // or to a `TableFormat` `Format` call to render a separator. |
no outgoing calls
no test coverage detected