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 ValueBytes
- type ValueError
- type ValueFmt
- type ValueInt
- type ValueInterface
- type ValueNone
- type ValueString
- type ValueStrings
- type ValueSuffix
- type ValueTime
- type ValueVersion
- 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
BackgroundStr string
BorderStr string
Transpose bool
}
func (*Table) SetColumnVisibility ¶
type ValueBytes ¶
type ValueBytes struct {
I uint64
}
func NewValueBytes ¶
func NewValueBytes(i uint64) ValueBytes
func NewValueMegaBytes ¶ added in v0.0.53
func NewValueMegaBytes(i uint64) ValueBytes
func (ValueBytes) Compare ¶
func (t ValueBytes) Compare(other Value) int
func (ValueBytes) String ¶
func (t ValueBytes) String() string
func (ValueBytes) Value ¶
func (t ValueBytes) Value() Value
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