Documentation ¶
Index ¶
- type OutputFormatter
- func (E *OutputFormatter) AddRow(row types.Row)
- func (E *OutputFormatter) AddTableMiddleware(mw middlewares.TableMiddleware)
- func (E *OutputFormatter) AddTableMiddlewareAtIndex(i int, mw middlewares.TableMiddleware)
- func (E *OutputFormatter) AddTableMiddlewareInFront(mw middlewares.TableMiddleware)
- func (E *OutputFormatter) GetTable() (*types.Table, error)
- func (E *OutputFormatter) Output() (string, error)
- func (E *OutputFormatter) SetColumnOrder(columns []types.FieldName)
- 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 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) Output ¶
func (E *OutputFormatter) Output() (string, 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
Click to show internal directories.
Click to hide internal directories.