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 Header ¶
func NewHeadersFromStrings ¶ added in v6.2.0
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 ¶
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
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 ¶
type ValueVersion ¶
func NewValueVersion ¶
func NewValueVersion(v semver.Version) ValueVersion
func (ValueVersion) Compare ¶
func (t ValueVersion) Compare(other Value) int
func (ValueVersion) String ¶
func (t ValueVersion) String() string
func (ValueVersion) Value ¶
func (t ValueVersion) Value() Value
Click to show internal directories.
Click to hide internal directories.