export

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 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 {
	Export(a ...interface{})
	ExportF(format string, a ...interface{})
	Close() *data.CodeError
}

func New

func New(file string) (Exporter, *data.CodeError)

type FileExporter

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

func EmptyFileExport added in v2.8.0

func EmptyFileExport() *FileExporter

func NewFileExport

func NewFileExport(config FileExporterConfig) (export *FileExporter, err *data.CodeError)

func (*FileExporter) Close

func (b *FileExporter) Close() *data.CodeError

func (*FileExporter) Fail

func (b *FileExporter) Fail() Exporter

func (*FileExporter) Overwrite

func (b *FileExporter) Overwrite() Exporter

func (*FileExporter) Result added in v2.13.0

func (b *FileExporter) Result() Exporter

func (*FileExporter) Skip

func (b *FileExporter) Skip() Exporter

func (*FileExporter) Success

func (b *FileExporter) Success() Exporter

type FileExporterConfig

type FileExporterConfig struct {
	SuccessExportFilePath   string // 输入列表中的成功部分
	FailExportFilePath      string // 输入列表中的失败部分
	SkipExportFilePath      string // 输入列表中的跳过部分
	OverwriteExportFilePath string // 输入列表中的覆盖部分
	ResultExportFilePath    string // 结果输出
}

Jump to

Keyboard shortcuts

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