Documentation ¶
Index ¶
- type CSVExporter
- type Exporter
- func (e *Exporter) CSVExportToByte(columns []string, rows [][]interface{}) ([]byte, error)
- func (e *Exporter) CSVExportToFile(columns []string, rows [][]interface{}, filePath string) error
- func (e *Exporter) XLSXExportToByte(sheet string, columns []string, rows [][]interface{}) ([]byte, error)
- func (e *Exporter) XLSXExportToFile(sheet string, columns []string, rows [][]interface{}, filePath string) error
- type ICSVExporter
- type IExporter
- type IXLSXExporter
- type XLSXExporter
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 (*Exporter) CSVExportToFile ¶
func (*Exporter) XLSXExportToByte ¶
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
Click to show internal directories.
Click to hide internal directories.