Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Header ¶
type Header struct { // Title is the headers title. Title string // Body is where the header data is stored. Body []string // Longest item is the length of the longest item in the header. Longest int }
Header model is used for storing the header data.
type Table ¶
type Table struct { // Headers array stores the headers and the data inside of them. Headers []*Header // Canvas is where the table render is written to. Canvas *strings.Builder // Columns is how many columns the table needs to print. Columns int }
Table model is used for storing table data.
func (*Table) ParseHeaders ¶
func (t *Table) ParseHeaders()
Click to show internal directories.
Click to hide internal directories.