Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table interface { // Save saves a table to a csv file Save(filename string) error // Fields returns the fields of the table Fields() Row // FieldIndex returns the index of a field, or -1 if the field does not exist FieldIndex(field string) int // Rows returns the rows of the table Rows() Rows // Append appends rows to the table Append(rows ...Row) // Clear clears the rows of the table Clear() // Sort sorts the table by a field Sort(field string) error // SortFunc sorts the table by a function SortFunc(func(row1, row2 Row) int) }
func NewFromFile ¶ added in v1.0.2
NewFromFile creates a new table from a csv file
Click to show internal directories.
Click to hide internal directories.