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

Function Example_xOutOfY

progressbar_test.go:145–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143}
144
145func Example_xOutOfY() {
146 bar := NewOptions(100, OptionSetPredictTime(true))
147
148 for i := 0; i < 100; i++ {
149 bar.Add(1)
150 time.Sleep(1 * time.Millisecond)
151 }
152}
153
154func ExampleOptionShowIts_count() {
155 bar := NewOptions(100, OptionSetWidth(10), OptionShowIts(), OptionShowCount())

Callers

nothing calls this directly

Calls 3

NewOptionsFunction · 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…