Documentation ¶
Index ¶
- type SingleColumnFormatter
- func (s *SingleColumnFormatter) Close(ctx context.Context, w io.Writer) error
- func (s *SingleColumnFormatter) ContentType() string
- func (s *SingleColumnFormatter) OutputTable(ctx context.Context, table_ *types.Table, w io.Writer) error
- func (s *SingleColumnFormatter) RegisterRowMiddlewares(mw *middlewares.TableProcessor) error
- func (s *SingleColumnFormatter) RegisterTableMiddlewares(mw *middlewares.TableProcessor) error
- type SingleColumnFormatterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SingleColumnFormatter ¶
type SingleColumnFormatter struct { Column types.FieldName OutputFile string OutputFileTemplate string OutputMultipleFiles bool Separator string }
func NewSingleColumnFormatter ¶
func NewSingleColumnFormatter(column types.FieldName, opts ...SingleColumnFormatterOption) *SingleColumnFormatter
func (*SingleColumnFormatter) ContentType ¶ added in v0.2.84
func (s *SingleColumnFormatter) ContentType() string
func (*SingleColumnFormatter) OutputTable ¶ added in v0.3.1
func (*SingleColumnFormatter) RegisterRowMiddlewares ¶ added in v0.4.13
func (s *SingleColumnFormatter) RegisterRowMiddlewares(mw *middlewares.TableProcessor) error
func (*SingleColumnFormatter) RegisterTableMiddlewares ¶ added in v0.3.1
func (s *SingleColumnFormatter) RegisterTableMiddlewares(mw *middlewares.TableProcessor) error
type SingleColumnFormatterOption ¶
type SingleColumnFormatterOption func(*SingleColumnFormatter)
func WithOutputFile ¶ added in v0.2.59
func WithOutputFile(outputFile string) SingleColumnFormatterOption
func WithOutputFileTemplate ¶ added in v0.2.59
func WithOutputFileTemplate(template string) SingleColumnFormatterOption
func WithOutputMultipleFiles ¶ added in v0.2.59
func WithOutputMultipleFiles(outputMultipleFiles bool) SingleColumnFormatterOption
func WithSeparator ¶
func WithSeparator(separator string) SingleColumnFormatterOption
Click to show internal directories.
Click to hide internal directories.