Progress
March 28, 2026 · View on GitHub
Visual progress indicator (determinate or indeterminate).
Constructor: NewProgress(id, class string, horizontal bool) *Progress
Methods
Increment(amount int)— increases current value by amountPercentage() float64— returns completion as 0–100SetTotal(total int)— sets total work units;0= indeterminateSetValue(value int)— sets current value (clamped to 0..total)
Notes
When total=0, the bar displays a spinning indeterminate animation.