Documentation ¶
Index ¶
- Constants
- func Blue(v ...interface{})
- func Cyan(v ...interface{})
- func Gray(v ...interface{})
- func Green(v ...interface{})
- func Magenta(v ...interface{})
- func PrintError(v ...any)
- func PrintErrorf(format string, v ...any)
- func PrintFatal(v ...any)
- func PrintFatalf(format string, v ...any)
- func PrintInfo(v ...any)
- func PrintInfof(format string, v ...any)
- func PrintSuccess(v ...any)
- func PrintSuccessf(format string, v ...any)
- func PrintWarning(v ...any)
- func PrintWarningf(format string, v ...any)
- func White(v ...interface{})
- func Yellow(v ...interface{})
- type FadeColors
- type HandleSelected
- type Input
- type InputItem
- type ProgressBar
- type Select
Constants ¶
View Source
const ( BarLength int = 192 BarTitle string = "[Download| %s <%s/%sMB>]" )
Variables ¶
This section is empty.
Functions ¶
func PrintError ¶
func PrintError(v ...any)
func PrintErrorf ¶ added in v0.0.7
func PrintFatal ¶
func PrintFatal(v ...any)
func PrintFatalf ¶ added in v0.0.8
func PrintInfof ¶ added in v0.0.7
func PrintSuccess ¶
func PrintSuccess(v ...any)
func PrintSuccessf ¶ added in v0.0.7
func PrintWarning ¶
func PrintWarning(v ...any)
func PrintWarningf ¶ added in v0.0.7
Types ¶
type FadeColors ¶
type FadeColors struct {
// contains filtered or unexported fields
}
func NewFadeColors ¶
func NewFadeColors(content any) *FadeColors
func (*FadeColors) Println ¶
func (that *FadeColors) Println()
type HandleSelected ¶ added in v0.2.4
type ProgressBar ¶
type ProgressBar struct { Bar *pterm.ProgressbarPrinter Filename string ContentLength int Total string CurrentReceived int // contains filtered or unexported fields }
ProgressBar for downloading files.
func NewProgressBar ¶
func NewProgressBar(filename string, length int) (p *ProgressBar)
func (*ProgressBar) Start ¶
func (that *ProgressBar) Start() (err error)
type Select ¶ added in v0.2.4
type Select struct { OptionList []string Handle HandleSelected }
func NewSelect ¶ added in v0.2.4
func NewSelect(opts []string, handle HandleSelected) *Select
func (*Select) SetDefaultText ¶ added in v0.2.5
Click to show internal directories.
Click to hide internal directories.