Versions in this module Expand all Collapse all v1 v1.0.1 Aug 5, 2026 Changes in this version + func AndIndex(indexes ...[]int) []int + func NotIndex(index []int, min, max int) []int + func OrIndex(indexes ...[]int) []int + func SortIndex(index []int) []int + type Agg struct + As string + Field string + Op AggOp + type AggOp int + const AggCount + const AggFirst + const AggJoin + const AggLast + const AggMax + const AggMin + const AggSum + type SimpleCsv [][]string + func Concat(csvs ...SimpleCsv) (SimpleCsv, bool) + func ConcatByName(csvs ...SimpleCsv) (SimpleCsv, bool) + func ConcatByNameE(csvs ...SimpleCsv) (SimpleCsv, error) + func ConcatE(csvs ...SimpleCsv) (SimpleCsv, error) + func CreateEmptyCsv(columnNames []string) (SimpleCsv, error) + func CreateEmpyCsv(columnNames []string) (SimpleCsv, error) + func MustCreateEmptyCsv(headers []string) SimpleCsv + func ReadCsv(r io.Reader, comma rune) (SimpleCsv, error) + func ReadCsvFile(filename string) (SimpleCsv, bool) + func ReadCsvFileComma(filename string, comma rune) (SimpleCsv, error) + func ReadCsvFileE(filename string) (SimpleCsv, error) + func ReadCsvLimit(r io.Reader, comma rune, maxRecords, maxBytes int64) (SimpleCsv, error) + func (s SimpleCsv) AddColumnByField(columnName string, values []string) (SimpleCsv, bool) + func (s SimpleCsv) AddComputedColumn(columnName string, fn func(row map[string]string) string) (SimpleCsv, bool) + func (s SimpleCsv) AddEmptyColumn(columnName string) (SimpleCsv, bool) + func (s SimpleCsv) AddEmptyColumnAt(columnName string, index int) (SimpleCsv, bool) + func (s SimpleCsv) AddRow(rowValue []string) (SimpleCsv, bool) + func (s SimpleCsv) AddRowFromMap(rowValue map[string]string) (SimpleCsv, bool) + func (s SimpleCsv) AppendRows(other SimpleCsv) (SimpleCsv, bool) + func (s SimpleCsv) CombineFields(names []string, sep, as string) (SimpleCsv, bool) + func (s SimpleCsv) DeleteRow(rowNumber int) (SimpleCsv, bool) + func (s SimpleCsv) DiffByKey(other SimpleCsv, key string) (added, removed, changed SimpleCsv, ok bool) + func (s SimpleCsv) Distinct(field string) ([]string, bool) + func (s SimpleCsv) EachDataRow(fn func(rowIndex int, row []string, asMap map[string]string) bool) + func (s SimpleCsv) FillColumnByField(columnName string, value string) (SimpleCsv, bool) + func (s SimpleCsv) FilterByField(name string, pred func(value string) bool) (SimpleCsv, bool) + func (s SimpleCsv) FilterRows(predicate func(row []string) bool, header bool) SimpleCsv + func (s SimpleCsv) FindInColumn(columnPosition int, word string) ([]int, bool) + func (s SimpleCsv) FindInColumnCaseSensitive(columnPosition int, word string) ([]int, bool) + func (s SimpleCsv) FindInField(columnName string, word string) ([]int, bool) + func (s SimpleCsv) FindInFieldCaseSensitive(columnName string, word string) ([]int, bool) + func (s SimpleCsv) FullJoin(other SimpleCsv, leftField, rightField string) (SimpleCsv, bool) + func (s SimpleCsv) FullJoinByField(other SimpleCsv, fieldName string) (SimpleCsv, bool) + func (s SimpleCsv) FullJoinOn(other SimpleCsv, leftFields, rightFields []string) (SimpleCsv, bool) + func (s SimpleCsv) GetCell(column int, row int) (string, bool) + func (s SimpleCsv) GetCellByField(columnName string, row int) (string, bool) + func (s SimpleCsv) GetColumn(column int) ([]string, bool) + func (s SimpleCsv) GetColumnByField(columnName string) ([]string, bool) + func (s SimpleCsv) GetDataRows() [][]string + func (s SimpleCsv) GetHeader(columnPosition int) (string, bool) + func (s SimpleCsv) GetHeaderPosition(columnName string) int + func (s SimpleCsv) GetHeaders() []string + func (s SimpleCsv) GetNumberDataRows() int + func (s SimpleCsv) GetNumberRows() int + func (s SimpleCsv) GetRow(rowNumber int) ([]string, bool) + func (s SimpleCsv) GetRowAsMap(rowNumber int) (map[string]string, bool) + func (s SimpleCsv) GroupBy(keys []string, aggs []Agg) (SimpleCsv, bool) + func (s SimpleCsv) GroupByE(keys []string, aggs []Agg) (SimpleCsv, error) + func (s SimpleCsv) Head(n int) SimpleCsv + func (s SimpleCsv) Join(other SimpleCsv, leftField, rightField string) (SimpleCsv, bool) + func (s SimpleCsv) JoinByField(other SimpleCsv, fieldName string) (SimpleCsv, bool) + func (s SimpleCsv) JoinE(other SimpleCsv, leftField, rightField string) (SimpleCsv, error) + func (s SimpleCsv) JoinOn(other SimpleCsv, leftFields, rightFields []string) (SimpleCsv, bool) + func (s SimpleCsv) LeftJoin(other SimpleCsv, leftField, rightField string) (SimpleCsv, bool) + func (s SimpleCsv) LeftJoinByField(other SimpleCsv, fieldName string) (SimpleCsv, bool) + func (s SimpleCsv) LeftJoinE(other SimpleCsv, leftField, rightField string) (SimpleCsv, error) + func (s SimpleCsv) LeftJoinOn(other SimpleCsv, leftFields, rightFields []string) (SimpleCsv, bool) + func (s SimpleCsv) MapColumnByField(columnName string, fn func(value string, row int) string) (SimpleCsv, bool) + func (s SimpleCsv) MatchInColumn(columnPosition int, regularexpression string) ([]int, bool) + func (s SimpleCsv) MatchInColumnCaseSensitive(columnPosition int, regularexpression string) ([]int, bool) + func (s SimpleCsv) MatchInField(columnName string, regularexpression string) ([]int, bool) + func (s SimpleCsv) MatchInFieldCaseSensitive(columnName string, regularexpression string) ([]int, bool) + func (s SimpleCsv) MergeColumns(other SimpleCsv) (SimpleCsv, bool) + func (s SimpleCsv) MoveColumn(columnName string, newIndex int) (SimpleCsv, bool) + func (s SimpleCsv) OnlyThisFields(fields []string) (SimpleCsv, bool) + func (s SimpleCsv) OnlyThisRows(rowsIndex []int, header bool) (SimpleCsv, bool) + func (s SimpleCsv) RemoveColumn(columnPosition int) (SimpleCsv, bool) + func (s SimpleCsv) RemoveColumnByName(columnName string) (SimpleCsv, bool) + func (s SimpleCsv) RenameHeader(oldHeader string, newHeader string) (SimpleCsv, bool) + func (s SimpleCsv) RenameHeaders(pairs map[string]string) (SimpleCsv, bool) + func (s SimpleCsv) ReplaceInField(columnName string, old string, new string) (SimpleCsv, bool) + func (s SimpleCsv) RightJoin(other SimpleCsv, leftField, rightField string) (SimpleCsv, bool) + func (s SimpleCsv) RightJoinByField(other SimpleCsv, fieldName string) (SimpleCsv, bool) + func (s SimpleCsv) RightJoinOn(other SimpleCsv, leftFields, rightFields []string) (SimpleCsv, bool) + func (s SimpleCsv) SanitizeFormulas() SimpleCsv + func (s SimpleCsv) SetCell(column int, row int, value string) (SimpleCsv, bool) + func (s SimpleCsv) SetCellByField(columnName string, row int, value string) (SimpleCsv, bool) + func (s SimpleCsv) SetColumn(column int, values []string) (SimpleCsv, bool) + func (s SimpleCsv) SetColumnByField(columnName string, values []string) (SimpleCsv, bool) + func (s SimpleCsv) SetRow(rowNumber int, rowValue []string) (SimpleCsv, bool) + func (s SimpleCsv) SetRowFromMap(rowNumber int, rowValue map[string]string) (SimpleCsv, bool) + func (s SimpleCsv) SliceRows(start, end int) (SimpleCsv, bool) + func (s SimpleCsv) SortByColumn(columnPosition int, ascending bool) (SimpleCsv, bool) + func (s SimpleCsv) SortByField(columnName string, ascending bool) (SimpleCsv, bool) + func (s SimpleCsv) SortByFields(fields []string, ascending []bool) (SimpleCsv, bool) + func (s SimpleCsv) SplitField(name, sep string, newNames []string) (SimpleCsv, bool) + func (s SimpleCsv) Tail(n int) SimpleCsv + func (s SimpleCsv) TrimSpace() (SimpleCsv, bool) + func (s SimpleCsv) Unique() SimpleCsv + func (s SimpleCsv) UniqueByFields(fields ...string) (SimpleCsv, bool) + func (s SimpleCsv) UpdateRowCellsFromMap(rowNumber int, rowValue map[string]string) (SimpleCsv, bool) + func (s SimpleCsv) ValueCounts(field string) (SimpleCsv, bool) + func (s SimpleCsv) Where(name, value string) (SimpleCsv, bool) + func (s SimpleCsv) WhereFold(name, value string) (SimpleCsv, bool) + func (s SimpleCsv) WriteCsvFile(filename string) bool + func (s SimpleCsv) WriteCsvFileComma(filename string, comma rune) error + func (s SimpleCsv) WriteCsvFileE(filename string) error + func (s SimpleCsv) WriteTo(w io.Writer, comma rune) error