Documentation ¶
Overview ¶
Package csv provides tools for data tables seriaization to/from CSV files.
The following CSV files format is currently supported:
"column1name,column1type","column2name,column2type", ... ,"columnNname,columnNtype" value1_1,value1_2, ... , value1_N value2_1,value2_2, ... , value2_N
The following column types are currently supported:
bool int64 float64 string TimestampMillis TimestampMicros
Index ¶
- func TableFromBytes(buffer []byte) (*data.Table, error)
- func TableFromFile(filePath string) (*data.Table, error)
- func TableFromReader(reader io.Reader) (*data.Table, error)
- func TableToBytes(table *data.Table) ([]byte, error)
- func TableToFile(table *data.Table, filePath string) error
- func TableToWriter(table *data.Table, writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TableFromBytes ¶
TableFromBytes reads a data.Table eagerly from a memory buffer
func TableFromFile ¶
TableFromFile reads a data.Table eagerly from a CSV file
func TableFromReader ¶
TableFromReader reads a data.Table eagerly from io.Reader
func TableToBytes ¶
TableToBytes writes a data.Table to a memory buffer
func TableToFile ¶
TableToFile writes a data.Table to a CSV file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.