Documentation
¶
Overview ¶
Package progressformatter is an implementation based on github.com/wagoodman/go-progress/simple
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTheme = Theme{ Filled: color.HEX("#fcba03").Sprintf(">"), Empty: color.HEX("#777777").Sprintf(">"), StartDelimiter: color.HEX("#777777").Sprintf("["), EndDelimiter: color.HEX("#777777").Sprintf("]"), }
DefaultTheme is the default theme for progress formatter.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter is the formatter of progress bar.
func NewFormatter ¶
NewFormatter will initialize a formatter with the default theme.
func NewFormatterWithTheme ¶
NewFormatterWithTheme will initialize a formatter with a specific theme.
Click to show internal directories.
Click to hide internal directories.