csv

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvFileImportedDataRow

type CsvFileImportedDataRow struct {
	// contains filtered or unexported fields
}

CsvFileImportedDataRow defines the structure of csv data table row

func (*CsvFileImportedDataRow) ColumnCount

func (r *CsvFileImportedDataRow) ColumnCount() int

ColumnCount returns the total count of column in this data row

func (*CsvFileImportedDataRow) GetData

func (r *CsvFileImportedDataRow) GetData(columnIndex int) string

GetData returns the data in the specified column index

type CsvFileImportedDataRowIterator

type CsvFileImportedDataRowIterator struct {
	// contains filtered or unexported fields
}

CsvFileImportedDataRowIterator defines the structure of csv data table row iterator

func (*CsvFileImportedDataRowIterator) CurrentRowId

func (t *CsvFileImportedDataRowIterator) CurrentRowId() string

CurrentRowId returns current index

func (*CsvFileImportedDataRowIterator) HasNext

func (t *CsvFileImportedDataRowIterator) HasNext() bool

HasNext returns whether the iterator does not reach the end

func (*CsvFileImportedDataRowIterator) Next

Next returns the next imported data row

type CsvFileImportedDataTable

type CsvFileImportedDataTable struct {
	// contains filtered or unexported fields
}

CsvFileImportedDataTable defines the structure of csv data table

func CreateNewCsvImportedDataTable

func CreateNewCsvImportedDataTable(ctx core.Context, reader io.Reader) (*CsvFileImportedDataTable, error)

CreateNewCsvImportedDataTable returns comma separated values data table by io readers

func CreateNewCustomCsvImportedDataTable

func CreateNewCustomCsvImportedDataTable(allLines [][]string) *CsvFileImportedDataTable

CreateNewCustomCsvImportedDataTable returns character separated values data table by io readers

func (*CsvFileImportedDataTable) DataRowCount

func (t *CsvFileImportedDataTable) DataRowCount() int

DataRowCount returns the total count of data row

func (*CsvFileImportedDataTable) DataRowIterator

DataRowIterator returns the iterator of data row

func (*CsvFileImportedDataTable) HeaderColumnNames

func (t *CsvFileImportedDataTable) HeaderColumnNames() []string

HeaderColumnNames returns the header column name list

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL