Documentation ¶
Index ¶
- type ExcelColumn
- type Exporter
- func (e *Exporter) AppendRow(record interface{})
- func (e *Exporter) PrepareHeader() *Exporter
- func (e *Exporter) Save()
- func (e *Exporter) WithColumns(columns []ExcelColumn) *Exporter
- func (e *Exporter) WithCurrentRow(currentRow int) *Exporter
- func (e *Exporter) WithIndex(index int) *Exporter
- func (e *Exporter) WithSheet(sheet string) *Exporter
- func (e *Exporter) Write(ctx *gin.Context, prefix string, opts ...excelize.Options)
- type Importer
- func (e *Importer) PrepareHeader() *Importer
- func (e *Importer) ReadFile(fileName string, callback func([]map[string]string), batchInSize int) (err error)
- func (e *Importer) ReadReader(reader io.Reader, callback func([]map[string]string), batchInSize int) (err error)
- func (e *Importer) WithColumns(columns []string) *Importer
- func (e *Importer) WithCurrentRow(currentRow int) *Importer
- func (e *Importer) WithIndex(index int) *Importer
- func (e *Importer) WithSheet(sheet string) *Importer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExcelColumn ¶
type Exporter ¶
type Exporter struct { *excelize.File Columns []ExcelColumn Sheet string Index int CurrentRow int Sheets []string // contains filtered or unexported fields }
func NewExporter ¶
func NewExporter(columns []ExcelColumn) *Exporter
func (*Exporter) PrepareHeader ¶
func (*Exporter) WithColumns ¶
func (e *Exporter) WithColumns(columns []ExcelColumn) *Exporter
func (*Exporter) WithCurrentRow ¶
type Importer ¶
type Importer struct { *excelize.File Columns []string Sheet string Index int CurrentRow int Sheets []string // contains filtered or unexported fields }
func NewImporter ¶
func NewImporter() *Importer
func (*Importer) PrepareHeader ¶
func (*Importer) ReadReader ¶
func (*Importer) WithColumns ¶
func (*Importer) WithCurrentRow ¶
Click to show internal directories.
Click to hide internal directories.