Versions in this module Expand all Collapse all v0 v0.0.1 May 30, 2024 Changes in this version + const AutoStop + const Black + const Blue + const Cyan + const DisableInput + const Green + const HideCursor + const PercentOverflow + const Purple + const Red + const ResizeReactively + const White + const Yellow + func BlackText(s string) string + func BlueText(s string) string + func ColorText(s string, color uint8) string + func CyanText(s string) string + func GreenText(s string) string + func PurpleText(s string) string + func RedText(s string) string + func WhiteText(s string) string + func YellowText(s string) string + type Bar interface + Hide func() + IsHidden func() bool + Show func() + type BarSetting struct + EndText string + FirstPassedText string + Hidden bool + HidePercent bool + Inline bool + LeftSpace uint16 + NotPassedText string + PassedText string + PercentColor uint8 + RightSpace uint16 + StartText string + Total uint16 + UseFloat bool + type Conf struct + AutoStop bool + Debug bool + type DefaultBar struct + Message string + N float64 + Setting BarSetting + func NewBar() *DefaultBar + func (b *DefaultBar) Add(n float64, messages ...string) error + func (b *DefaultBar) Custom(setting BarSetting) *DefaultBar + func (b *DefaultBar) Hide() + func (b *DefaultBar) Inc(messages ...string) error + func (b *DefaultBar) IsHidden() bool + func (b *DefaultBar) Percent(n float64, messages ...string) (err error) + func (b *DefaultBar) Show() + type LoadingBar struct + Setting LoadingBarSetting + func NewLoadingBar(milli time.Duration, steps ...string) *LoadingBar + func (b *LoadingBar) Custom(setting LoadingBarSetting) *LoadingBar + func (b *LoadingBar) Hide() + func (b *LoadingBar) IsHidden() bool + func (b *LoadingBar) SetColor(color uint8) *LoadingBar + func (b *LoadingBar) Show() + func (b *LoadingBar) Stop() error + type LoadingBarSetting struct + EndText string + FixedWidth bool + Hidden bool + Inline bool + StartText string + type Progress struct + func Start() *Progress + func StartWithFlag(flag uint8) *Progress + func (p *Progress) AddBar(b Bar) + func (p *Progress) Stop() error + type TextBar struct + Setting TextBarSetting + func NewTextBar(content string) *TextBar + func (b *TextBar) Custom(setting TextBarSetting) *TextBar + func (b *TextBar) Hide() + func (b *TextBar) IsHidden() bool + func (b *TextBar) Show() + type TextBarSetting struct + Hidden bool + Inline bool