Documentation
¶
Overview ¶
Package table is data a work carries: a table of rows and columns, made into a spreadsheet (XLSX) or a CSV file. Both are made from the same data.
Index ¶
- Variables
- type CSV
- func (CSV) CleanData(raw json.RawMessage) (json.RawMessage, error)
- func (CSV) DataHelp() string
- func (CSV) DataSchema() map[string]any
- func (CSV) Describe() string
- func (CSV) Ext() string
- func (CSV) MediaType() string
- func (CSV) Name() string
- func (CSV) Needs() string
- func (CSV) Render(w memory.Work, _ string) ([]byte, error)
- func (CSV) WriteHelp() string
- type Table
- type XLSX
- func (XLSX) CleanData(raw json.RawMessage) (json.RawMessage, error)
- func (XLSX) DataHelp() string
- func (XLSX) DataSchema() map[string]any
- func (XLSX) Describe() string
- func (XLSX) Ext() string
- func (XLSX) MediaType() string
- func (XLSX) Name() string
- func (XLSX) Needs() string
- func (XLSX) Render(w memory.Work, _ string) ([]byte, error)
- func (XLSX) WriteHelp() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmpty = errors.New("table: no columns")
Functions ¶
This section is empty.
Types ¶
type CSV ¶
type CSV struct {
// contains filtered or unexported fields
}
func (CSV) CleanData ¶
func (CSV) CleanData(raw json.RawMessage) (json.RawMessage, error)
func (CSV) DataSchema ¶
type XLSX ¶
type XLSX struct {
// contains filtered or unexported fields
}
func (XLSX) CleanData ¶
func (XLSX) CleanData(raw json.RawMessage) (json.RawMessage, error)
func (XLSX) DataSchema ¶
Click to show internal directories.
Click to hide internal directories.