exportkit

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExportTypeExcel = "excel"
	ExportTypeCsv   = "csv"
)

Variables

View Source
var ErrExportTypeNotSupport = errors.New("不支持的导出类型")

Functions

This section is empty.

Types

type Callback

type Callback func(et ExportType) error

type Export

type Export interface {
}

type ExportConfig

type ExportConfig struct {
	IterationType IterationType
	BatchSize     int // 批量大小
	SheetName     string
}

type ExportType

type ExportType string

func (ExportType) String

func (t ExportType) String() string

type IterationType

type IterationType int

IterationType 迭代方式枚举

const (
	IterationCursor IterationType = iota // 游标迭代(推荐大数据量)
	IterationBatch                       // 批量查询
	IterationAll                         // 一次性查询
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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