Documentation ¶
Index ¶
- Constants
- func KeyifyHeader(header string) string
- type ColumnSort
- type EmptyValue
- type Header
- type Section
- type Sorting
- type Table
- type Value
- type ValueBool
- type ValueError
- type ValueFmt
- type ValueInt
- type ValueInterface
- type ValueNone
- type ValueString
- type ValueStrings
- type ValueSuffix
- type ValueTime
- type Writer
Constants ¶
View Source
const UNKNOWN_HEADER_MAPPING rune = '_'
Variables ¶
This section is empty.
Functions ¶
func KeyifyHeader ¶
Types ¶
type ColumnSort ¶
type EmptyValue ¶
type EmptyValue struct{}
func (EmptyValue) Compare ¶
func (t EmptyValue) Compare(Value) int
func (EmptyValue) String ¶
func (t EmptyValue) String() string
func (EmptyValue) Value ¶
func (t EmptyValue) Value() Value
type Sorting ¶
type Sorting struct { SortBy []ColumnSort Rows [][]Value }
type Table ¶
type Table struct { Title string Content string Header []Header SortBy []ColumnSort // Either sections or rows should be provided Sections []Section Rows [][]Value Notes []string // Formatting HeaderFormatFunc func(string, ...interface{}) string DataOnly bool FillFirstColumn bool DuplicateStr string BackgroundStr string BorderStr string Transpose bool }
func (*Table) SetColumnVisibility ¶
type ValueError ¶
type ValueError struct {
E error
}
func NewValueError ¶
func NewValueError(e error) ValueError
func (ValueError) Compare ¶
func (t ValueError) Compare(other Value) int
func (ValueError) String ¶
func (t ValueError) String() string
func (ValueError) Value ¶
func (t ValueError) Value() Value
type ValueInterface ¶
type ValueInterface struct {
I interface{}
}
func NewValueInterface ¶
func NewValueInterface(i interface{}) ValueInterface
func (ValueInterface) Compare ¶
func (t ValueInterface) Compare(other Value) int
func (ValueInterface) String ¶
func (t ValueInterface) String() string
func (ValueInterface) Value ¶
func (t ValueInterface) Value() Value
type ValueString ¶
type ValueString struct {
S string
}
func NewValueString ¶
func NewValueString(s string) ValueString
func (ValueString) Compare ¶
func (t ValueString) Compare(other Value) int
func (ValueString) String ¶
func (t ValueString) String() string
func (ValueString) Value ¶
func (t ValueString) Value() Value
type ValueStrings ¶
type ValueStrings struct {
S []string
}
func NewValueStrings ¶
func NewValueStrings(s []string) ValueStrings
func (ValueStrings) Compare ¶
func (t ValueStrings) Compare(other Value) int
func (ValueStrings) String ¶
func (t ValueStrings) String() string
func (ValueStrings) Value ¶
func (t ValueStrings) Value() Value
type ValueSuffix ¶
func NewValueSuffix ¶
func NewValueSuffix(v Value, s string) ValueSuffix
func (ValueSuffix) Compare ¶
func (t ValueSuffix) Compare(other Value) int
func (ValueSuffix) String ¶
func (t ValueSuffix) String() string
func (ValueSuffix) Value ¶
func (t ValueSuffix) Value() Value
type ValueTime ¶
func NewValueTime ¶
Click to show internal directories.
Click to hide internal directories.