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 PrintFatal(v ...any)
- func PrintInfo(v ...any)
- func PrintSuccess(v ...any)
- func PrintWarning(v ...any)
- func SPrintErrorf(format string, v ...any)
- func SPrintFatalf(format string, v ...any)
- func SPrintInfof(format string, v ...any)
- func SPrintSuccessf(format string, v ...any)
- func SPrintWarningf(format string, v ...any)
- func White(v ...interface{})
- func Yellow(v ...interface{})
- type FadeColors
- type Input
- type InputItem
- type ProgressBar
Constants ¶
View Source
const ( BarLength int = 192 BarTitle string = "[ GetFile|<%s %s/%sMB>]" )
Variables ¶
This section is empty.
Functions ¶
func PrintError ¶
func PrintError(v ...any)
func PrintFatal ¶
func PrintFatal(v ...any)
func PrintSuccess ¶
func PrintSuccess(v ...any)
func PrintWarning ¶
func PrintWarning(v ...any)
func SPrintErrorf ¶
func SPrintFatalf ¶
func SPrintInfof ¶
func SPrintSuccessf ¶ added in v0.0.6
func SPrintWarningf ¶
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 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)
Click to show internal directories.
Click to hide internal directories.