Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpperSnake ¶
Types ¶
type FieldSelector ¶
func ByName ¶
func ByName(fieldNames ...string) FieldSelector
type HeaderFormatter ¶
type RowModifier ¶ added in v0.2.0
func WithAdditionalFields ¶ added in v0.2.0
func WithAdditionalFields(fs ...Field) RowModifier
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func NewTable ¶
func NewTable(opts ...TableOption) (*Table, error)
type TableConfig ¶
type TableConfig struct { Out io.Writer Columns []string Selector FieldSelector HFormatter HeaderFormatter NoHeaders bool PagerBin string }
func (*TableConfig) Default ¶
func (c *TableConfig) Default()
func (*TableConfig) Option ¶
func (c *TableConfig) Option(opts ...TableOption)
type TableOption ¶
type TableOption interface {
ApplyToTableConfig(*TableConfig)
}
type WithColumns ¶
type WithColumns string
func (WithColumns) ApplyToTableConfig ¶
func (wc WithColumns) ApplyToTableConfig(c *TableConfig)
type WithFieldSelector ¶
type WithFieldSelector FieldSelector
func (WithFieldSelector) ApplyToTableConfig ¶
func (wf WithFieldSelector) ApplyToTableConfig(c *TableConfig)
type WithHeaderFormatter ¶
type WithHeaderFormatter HeaderFormatter
func (WithHeaderFormatter) ApplyToTableConfig ¶
func (wh WithHeaderFormatter) ApplyToTableConfig(c *TableConfig)
type WithNoHeaders ¶
type WithNoHeaders bool
func (WithNoHeaders) ApplyToTableConfig ¶
func (wn WithNoHeaders) ApplyToTableConfig(c *TableConfig)
type WithOutput ¶
type WithOutput struct {
// contains filtered or unexported fields
}
func (WithOutput) ApplyToTableConfig ¶
func (wo WithOutput) ApplyToTableConfig(c *TableConfig)
type WithPager ¶
type WithPager string
func (WithPager) ApplyToTableConfig ¶
func (wp WithPager) ApplyToTableConfig(c *TableConfig)
Click to show internal directories.
Click to hide internal directories.