excel

package
v0.2.80 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputFormatter

type OutputFormatter struct {
	SheetName  string
	OutputFile string
	Table      *types.Table
	// contains filtered or unexported fields
}

func NewOutputFormatter

func NewOutputFormatter(opts ...OutputFormatterOption) *OutputFormatter

func (*OutputFormatter) AddRow

func (E *OutputFormatter) AddRow(row types.Row)

func (*OutputFormatter) AddTableMiddleware

func (E *OutputFormatter) AddTableMiddleware(mw middlewares.TableMiddleware)

func (*OutputFormatter) AddTableMiddlewareAtIndex

func (E *OutputFormatter) AddTableMiddlewareAtIndex(i int, mw middlewares.TableMiddleware)

func (*OutputFormatter) AddTableMiddlewareInFront

func (E *OutputFormatter) AddTableMiddlewareInFront(mw middlewares.TableMiddleware)

func (*OutputFormatter) GetTable

func (E *OutputFormatter) GetTable() (*types.Table, error)

func (*OutputFormatter) Output

func (E *OutputFormatter) Output(ctx context.Context, w io.Writer) error

func (*OutputFormatter) SetColumnOrder

func (E *OutputFormatter) SetColumnOrder(columns []types.FieldName)

type OutputFormatterOption

type OutputFormatterOption func(*OutputFormatter)

func WithOutputFile

func WithOutputFile(outputFile string) OutputFormatterOption

func WithSheetName

func WithSheetName(sheetName string) OutputFormatterOption

Jump to

Keyboard shortcuts

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