Documentation ¶
Index ¶
- type OutputFormatter
- func (E *OutputFormatter) Close(ctx context.Context, w io.Writer) error
- func (f *OutputFormatter) ContentType() string
- func (E *OutputFormatter) OutputRow(_ context.Context, row types.Row, w io.Writer) error
- func (E *OutputFormatter) RegisterRowMiddlewares(mw *middlewares.TableProcessor) error
- func (E *OutputFormatter) RegisterTableMiddlewares(mw *middlewares.TableProcessor) error
- type OutputFormatterOption
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 // contains filtered or unexported fields }
func NewOutputFormatter ¶
func NewOutputFormatter(opts ...OutputFormatterOption) *OutputFormatter
func (*OutputFormatter) ContentType ¶ added in v0.2.84
func (f *OutputFormatter) ContentType() string
func (*OutputFormatter) RegisterRowMiddlewares ¶ added in v0.4.13
func (E *OutputFormatter) RegisterRowMiddlewares(mw *middlewares.TableProcessor) error
func (*OutputFormatter) RegisterTableMiddlewares ¶ added in v0.3.1
func (E *OutputFormatter) RegisterTableMiddlewares(mw *middlewares.TableProcessor) error
type OutputFormatterOption ¶
type OutputFormatterOption func(*OutputFormatter)
func WithOutputFile ¶
func WithOutputFile(outputFile string) OutputFormatterOption
func WithSheetName ¶
func WithSheetName(sheetName string) OutputFormatterOption
Click to show internal directories.
Click to hide internal directories.