simple

package
v0.2.69 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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