MCPcopy Create free account
hub / github.com/schollz/progressbar / ExampleProgressBar_ChangeMax

Function ExampleProgressBar_ChangeMax

progressbar_test.go:210–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208}
209
210func ExampleProgressBar_ChangeMax() {
211 bar := NewOptions(100, OptionSetWidth(10), OptionSetPredictTime(false))
212 bar.ChangeMax(50)
213 bar.Add(50)
214 // Output:
215 // 100% |██████████|
216}
217
218func ExampleProgressBar_AddMax() {
219 bar := NewOptions(50, OptionSetWidth(10), OptionSetPredictTime(false))

Callers

nothing calls this directly

Calls 5

NewOptionsFunction · 0.85
OptionSetWidthFunction · 0.85
OptionSetPredictTimeFunction · 0.85
ChangeMaxMethod · 0.80
AddMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…