Documentation
¶
Index ¶
- func Black(s string) string
- func Blue(s string) string
- func Bold(s string) string
- func Cyan(s string) string
- func Gray(s string) string
- func Green(s string) string
- func Pink(s string) string
- func PrintBlack(s string)
- func PrintBlue(s string)
- func PrintBold(s string)
- func PrintCyan(s string)
- func PrintGray(s string)
- func PrintGreen(s string)
- func PrintPink(s string)
- func PrintRed(s string)
- func PrintWhite(s string)
- func PrintYellow(s string)
- func Red(s string) string
- func SetColor(text string, conf, bg, color int) string
- func White(s string) string
- func Yellow(s string) string
- type Bar
- func (b *Bar) Add(n int64)
- func (b *Bar) Close()
- func (b *Bar) Render(w io.Writer) int64
- func (b *Bar) SetEmpty(s string, color ...string)
- func (b *Bar) SetFilled(s string, color ...string)
- func (b *Bar) SetName(s string, color ...string)
- func (b *Bar) SetPrefix(s string, color ...string)
- func (b *Bar) SetText(s string, color ...string)
- func (b *Bar) Write(bytes []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintBlack ¶
func PrintBlack(s string)
func PrintGreen ¶
func PrintGreen(s string)
func PrintWhite ¶
func PrintWhite(s string)
func PrintYellow ¶
func PrintYellow(s string)
Types ¶
type Bar ¶
type Bar struct {
StartDelimiter string // StartDelimiter for the bar ("|")
EndDelimiter string // EndDelimiter for the bar ("|")
Filled string // Filled section representation ("█ ■")
Empty string // Empty section representation ("░ □")
Width int // Width of the bar
Name string // Name of the bar
Prefix string // Prefix of the bar
// contains filtered or unexported fields
}
Bar is a progress bar
Click to show internal directories.
Click to hide internal directories.