Documentation ¶
Index ¶
- func AgeFormatter(seconds uint64) string
- func GetColorFn(id int) func(...interface{}) string
- func GetColorsFn(id int) (func(...interface{}) string, func(...interface{}) string)
- func GetTableRowColor(id int) tablewriter.Colors
- func GetTableWriter(header []string) *tablewriter.Table
- func SelfUpdate(version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgeFormatter ¶ added in v0.0.2
Format seconds to a string in the following formats '1d1h'/'1m1s'
func GetColorsFn ¶
Get two color functions
func GetTableRowColor ¶ added in v0.0.2
func GetTableRowColor(id int) tablewriter.Colors
Get a tablewriter color depending of a given ID
func GetTableWriter ¶
func GetTableWriter(header []string) *tablewriter.Table
Generate a writer for tablewriter
func SelfUpdate ¶ added in v0.0.2
Update the binary version if a newer is found
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.