Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Verbose bool
Verbose enabled or disabled showing debug messages in CLI.
Functions ¶
func FormatDuration ¶
func FormatDuration(d interface{}) string
FormatDuration renders human friendly duration string.
func Printf ¶
func Printf(format string, args ...interface{})
Printf works identically to fmt.Print but adds `<white+hb>color formatting support for CLI</reset>`.
func RandString ¶
RandString returns random string (lowercased) of desired length.
Types ¶
type Banner ¶
type Banner struct {
// contains filtered or unexported fields
}
Banner allows automatic line alignment within desired width, banner includes color rendering.
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
Progress allows to represent processing state using progress bar or spinner.
func NewProgress ¶
NewProgress returns progress bar or spinner based on given total duration.
Click to show internal directories.
Click to hide internal directories.