exporter

package
v1.2.69 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVExporter

type CSVExporter struct {
}

func NewCSVExportService

func NewCSVExportService() *CSVExporter

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

func NewExportService

func NewExportService(xlsxExporter IXLSXExporter, csvExporter ICSVExporter) *Exporter

func (*Exporter) CSVExportToByte

func (e *Exporter) CSVExportToByte(columns []string, rows [][]interface{}) ([]byte, error)

func (*Exporter) CSVExportToFile

func (e *Exporter) CSVExportToFile(columns []string, rows [][]interface{}, filePath string) error

func (*Exporter) XLSXExportToByte

func (e *Exporter) XLSXExportToByte(sheet string, columns []string, rows [][]interface{}) ([]byte, error)

func (*Exporter) XLSXExportToFile

func (e *Exporter) XLSXExportToFile(sheet string, columns []string, rows [][]interface{}, filePath string) error

type ICSVExporter

type ICSVExporter interface {
	// contains filtered or unexported methods
}

type IExporter

type IExporter interface {
	XLSXExportToFile(sheet string, columns []string, rows [][]interface{}, filePath string) error
	XLSXExportToByte(sheet string, columns []string, rows [][]interface{}) ([]byte, error)
	CSVExportToFile(columns []string, rows [][]interface{}, filePath string) error
	CSVExportToByte(columns []string, rows [][]interface{}) ([]byte, error)
}

type IXLSXExporter

type IXLSXExporter interface {
	// contains filtered or unexported methods
}

type XLSXExporter

type XLSXExporter struct {
}

func NewXLSXExportService

func NewXLSXExportService() *XLSXExporter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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