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

Function ExampleProgressBar_basic

progressbar_test.go:63–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func ExampleProgressBar_basic() {
64 bar := NewOptions(100, OptionSetWidth(10))
65 bar.Reset()
66 time.Sleep(1 * time.Second)
67 bar.Add(10)
68 // Output:
69 // 10% |█ | [1s:9s]
70}
71
72func ExampleProgressBar_invisible() {
73 bar := NewOptions(100, OptionSetWidth(10), OptionSetRenderBlankState(true), OptionSetVisibility(false))

Callers

nothing calls this directly

Calls 4

NewOptionsFunction · 0.85
OptionSetWidthFunction · 0.85
ResetMethod · 0.80
AddMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…