We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3304512 commit e914fa2Copy full SHA for e914fa2
bar.go
@@ -4,6 +4,7 @@ import (
4
"bytes"
5
"context"
6
"io"
7
+ "math"
8
"strings"
9
"time"
10
@@ -149,6 +150,11 @@ func (b *Bar) SetRefill(amount int64) {
149
150
}
151
152
153
+// SetRefillCurrent sets refill to the current amount.
154
+func (b *Bar) SetRefillCurrent() {
155
+ b.SetRefill(math.MaxInt64)
156
+}
157
+
158
// TraverseDecorators traverses available decorators and calls `cb`
159
// on each unwrapped one.
160
func (b *Bar) TraverseDecorators(cb func(decor.Decorator)) {
0 commit comments