Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter interface { ExportAsBytes(headers []string, data [][]string) ([]byte, error) ExportAsStream(headers []string, data [][]string, writer io.Writer) error }
Exporter write the given tabular data into a stream
func NewExporter ¶
func NewExporter(exporterType ExporterType) (Exporter, error)
NewExporter create a new exporter with the given export type
type ExporterType ¶
type ExporterType string
ExporterType the impl type of the exporter
const ( // CSVExporterType export in csv format CSVExporterType ExporterType = "csv" // HTMLExporerType export as html HTMLExporerType ExporterType = "html" )
Click to show internal directories.
Click to hide internal directories.