MCPcopy Create free account
hub / github.com/UiPath/uipathcli / createBar

Method createBar

utils/visualization/progress_bar.go:92–98  ·  view source on GitHub ↗
(percent float64)

Source from the content-addressed store, hash-verified

90}
91
92func (b *ProgressBar) createBar(percent float64) string {
93 barCount := int(percent / 5.0)
94 if barCount > 20 {
95 barCount = 20
96 }
97 return strings.Repeat("█", barCount) + strings.Repeat(" ", 20-barCount)
98}
99
100func (b *ProgressBar) formatBytes(count int64) (string, string) {
101 if count < 1000 {

Callers 2

renderTickMethod · 0.95
renderProgressMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected