MCPcopy Index your code
hub / github.com/schollz/progressbar / ExampleOptionSetPredictTime

Function ExampleOptionSetPredictTime

progressbar_test.go:179–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179func ExampleOptionSetPredictTime() {
180 bar := NewOptions(100, OptionSetWidth(10), OptionSetPredictTime(false))
181 _ = bar.Add(10)
182 // Output:
183 // 10% |█ |
184}
185
186func ExampleOptionShowDescriptionAtLineEnd() {
187 bar := NewOptions(100, OptionSetWidth(10), OptionShowDescriptionAtLineEnd(), OptionSetDescription("hello"))

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…