export

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2023 License: MIT Imports: 5 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL