Categorygithub.com/nathangreene3/table
modulepackage
1.1.0
Repository: https://github.com/nathangreene3/table.git
Documentation: pkg.go.dev

# README

Table

go get github.com/nathangreene3/table

A table holds tabular data. Each column has a name and type defined by the first value in the column. The supported types are integers, floats, booleans, time stamps, and strings. A table may be imported from or exported to csv or json.

# Functions

FromCSV returns a new table with data read from a csv file.
FromJSON returns a new table with data parsed from a json-encoded string.
Generate returns a new table generated by a generator.
Join several tables having the same number of rows into one.
New returns a new table.
NewBody returns a new body of values.
NewCol returns a new column of values.
NewFTime returns a new FTime.
NewHeader returns a new header.
NewRow returns a new row.
NewTypes returns a new list of types.
Parse returns the type of a given value.
ParseFTime returns a new FTime parsed from the default time formats and any additional time formats.

# Constants

Bool corresponds to type bool.
Flt corresponds to type float64.
Int corresponds to type int.
Inv corresponds to any invalid type.
Str corresponds to type string.
Time corresponds to type time.Time.

# Variables

Fmt0 ..
Fmt1 ..
Fmt2 ..
Fmt3 ..
Fmt4 ..
Fmt5 ..

# Structs

Format holds decoration characters for displaying a table.
FTime is a time.Time together with a format that was either used in parsing the timestamp from a string or set to format the timestamp.
No description provided by the author

# Type aliases

Body is a list of mn values.
Column is a list of values.
No description provided by the author
No description provided by the author
Header is a list of column names.
No description provided by the author
No description provided by the author
Row is a list of values.
Type corresponds to a basic type.
Types is a list of types.