Documentation ¶
Index ¶
- type SingleColumnFormatter
- func (s *SingleColumnFormatter) AddRow(row types.Row)
- func (s *SingleColumnFormatter) AddTableMiddleware(m middlewares.TableMiddleware)
- func (s *SingleColumnFormatter) AddTableMiddlewareAtIndex(i int, m middlewares.TableMiddleware)
- func (s *SingleColumnFormatter) AddTableMiddlewareInFront(m middlewares.TableMiddleware)
- func (s *SingleColumnFormatter) GetTable() (*types.Table, error)
- func (s *SingleColumnFormatter) Output() (string, error)
- func (s *SingleColumnFormatter) SetColumnOrder(columnOrder []types.FieldName)
- type SingleColumnFormatterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SingleColumnFormatter ¶
type SingleColumnFormatter struct { Table *types.Table Column types.FieldName OutputFile string OutputFileTemplate string OutputMultipleFiles bool Separator string // contains filtered or unexported fields }
func NewSingleColumnFormatter ¶
func NewSingleColumnFormatter(column types.FieldName, opts ...SingleColumnFormatterOption) *SingleColumnFormatter
func (*SingleColumnFormatter) AddRow ¶
func (s *SingleColumnFormatter) AddRow(row types.Row)
func (*SingleColumnFormatter) AddTableMiddleware ¶
func (s *SingleColumnFormatter) AddTableMiddleware(m middlewares.TableMiddleware)
func (*SingleColumnFormatter) AddTableMiddlewareAtIndex ¶
func (s *SingleColumnFormatter) AddTableMiddlewareAtIndex(i int, m middlewares.TableMiddleware)
func (*SingleColumnFormatter) AddTableMiddlewareInFront ¶
func (s *SingleColumnFormatter) AddTableMiddlewareInFront(m middlewares.TableMiddleware)
func (*SingleColumnFormatter) GetTable ¶
func (s *SingleColumnFormatter) GetTable() (*types.Table, error)
func (*SingleColumnFormatter) Output ¶
func (s *SingleColumnFormatter) Output() (string, error)
func (*SingleColumnFormatter) SetColumnOrder ¶
func (s *SingleColumnFormatter) SetColumnOrder(columnOrder []types.FieldName)
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.