simple

package
v0.2.58 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 4 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
	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 WithSeparator

func WithSeparator(separator string) SingleColumnFormatterOption

Jump to

Keyboard shortcuts

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