Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table interface {
// Load loads a table from a csv file
Load(filename string) error
// Save saves a table to a csv file
Save(filename string) error
// Fields returns the fields of the table
Fields() Row
// Rows returns the rows of the table
Rows() Rows
// SetFields sets the fields of the table
SetFields(fields Row)
// SetRows sets the rows of the table
SetRows(rows Rows)
// FieldIndex returns the index of a field, or -1 if it doesn't exist
FieldIndex(field string) int
// AppendRows appends rows to the table
AppendRows(rows ...Row)
// Sort sorts the table by a field
Sort(field string) error
// SortFunc sorts the table by a function
SortFunc(func(row1, row2 Row) int)
}
Click to show internal directories.
Click to hide internal directories.