eru_writes

package
v0.0.0-...-6dc645d Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DataTypeString        = "string"
	DataTypeInt           = "int"
	DataTypeDate          = "date"
	DataTypeFloat         = "float"
	DataTypeBoolean       = "boolean"
	DefaultFloatPrecision = 2
	DefaultFloatByteSize  = 64
)
View Source
const (
	OutputTypeExcel = "excel"
	OutputTypeCsv   = "csv"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CellFormatter

type CellFormatter struct {
	DataTypes []string
}

type ExcelWriteData

type ExcelWriteData struct {
	WriteData
	CellFormat CellFormatter
}

func (*ExcelWriteData) WriteColumnar

func (ewd *ExcelWriteData) WriteColumnar(ctx context.Context) (writeOutput []byte, err error)

type WriteData

type WriteData struct {
	ColumnarDataMap            map[string][][]interface{}
	ColumnarData               [][]interface{}
	ColumnarDataHeader         []string
	ColumnarDataHeaderFirstRow bool
	FileName                   string
}

func (*WriteData) WriteColumnar

func (wd *WriteData) WriteColumnar() (writeOutput []byte, err error)

type WriteI

type WriteI interface {
	WriteColumnar() (writeOutput []byte, err error)
}

Jump to

Keyboard shortcuts

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