Documentation
¶
Overview ¶
Package data provides data processing capabilities for Nxlang including CSV and Excel file handling
Index ¶
- func CloseCSVFunc(args ...types.Object) types.Object
- func CreateCSVReaderFunc(args ...types.Object) types.Object
- func CreateCSVWriterFunc(args ...types.Object) types.Object
- func GetCSVHeadersFunc(args ...types.Object) types.Object
- func OpenCSVFunc(args ...types.Object) types.Object
- func ParseCSVFunc(args ...types.Object) types.Object
- func ReadCSVAllFunc(args ...types.Object) types.Object
- func ReadCSVFunc(args ...types.Object) types.Object
- func ReadCSVRowFunc(args ...types.Object) types.Object
- func ToCSVFunc(args ...types.Object) types.Object
- func WriteCSVFunc(args ...types.Object) types.Object
- func WriteCSVRowFunc(args ...types.Object) types.Object
- type CSVReader
- func (r *CSVReader) Close()
- func (r *CSVReader) Equals(other types.Object) bool
- func (r *CSVReader) GetHeaders() types.Object
- func (r *CSVReader) ReadAll() types.Object
- func (r *CSVReader) ReadRow() types.Object
- func (r *CSVReader) ToStr() string
- func (r *CSVReader) TypeCode() uint8
- func (r *CSVReader) TypeName() string
- type CSVWriter
- func (w *CSVWriter) Close()
- func (w *CSVWriter) Equals(other types.Object) bool
- func (w *CSVWriter) ToStr() string
- func (w *CSVWriter) TypeCode() uint8
- func (w *CSVWriter) TypeName() string
- func (w *CSVWriter) WriteHeaders(headers types.Object) types.Object
- func (w *CSVWriter) WriteRow(row types.Object) types.Object
- func (w *CSVWriter) WriteRows(rows types.Object) types.Object
- type DataTable
- func (t *DataTable) AddRow(row *collections.Array)
- func (t *DataTable) Equals(other types.Object) bool
- func (t *DataTable) GetHeaders() *collections.Array
- func (t *DataTable) GetRow(index int) types.Object
- func (t *DataTable) GetRowCount() int
- func (t *DataTable) ToStr() string
- func (t *DataTable) TypeCode() uint8
- func (t *DataTable) TypeName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseCSVFunc ¶
CloseCSVFunc closes a CSV reader or writer
func CreateCSVReaderFunc ¶
CreateCSVReaderFunc creates a new CSV reader
func CreateCSVWriterFunc ¶
CreateCSVWriterFunc creates a new CSV writer
func GetCSVHeadersFunc ¶
GetCSVHeadersFunc gets headers from CSV reader
func OpenCSVFunc ¶
OpenCSVFunc opens a CSV file for reading
func ParseCSVFunc ¶
ParseCSVFunc parses a CSV string
func ReadCSVAllFunc ¶
ReadCSVAllFunc reads all rows from CSV reader
func ReadCSVFunc ¶
ReadCSVFunc reads all data from a CSV file
func ReadCSVRowFunc ¶
ReadCSVRowFunc reads next row from CSV reader
func WriteCSVFunc ¶
WriteCSVFunc writes data to a CSV file
Types ¶
type CSVReader ¶
type CSVReader struct {
// contains filtered or unexported fields
}
CSVReader represents a CSV file reader
func (*CSVReader) GetHeaders ¶
GetHeaders returns the CSV headers
type CSVWriter ¶
type CSVWriter struct {
// contains filtered or unexported fields
}
CSVWriter represents a CSV file writer
func (*CSVWriter) WriteHeaders ¶
WriteHeaders writes headers to the CSV file
type DataTable ¶
type DataTable struct {
// contains filtered or unexported fields
}
DataTable represents a table of data (for Excel-like operations)
func NewDataTable ¶
NewDataTable creates a new data table
func (*DataTable) AddRow ¶
func (t *DataTable) AddRow(row *collections.Array)
AddRow adds a row to the data table
func (*DataTable) GetHeaders ¶
func (t *DataTable) GetHeaders() *collections.Array
GetHeaders returns the headers
func (*DataTable) GetRowCount ¶
GetRowCount returns the number of rows