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

Function ExampleProgressBar_invisible

progressbar_test.go:72–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72func ExampleProgressBar_invisible() {
73 bar := NewOptions(100, OptionSetWidth(10), OptionSetRenderBlankState(true), OptionSetVisibility(false))
74 bar.Reset()
75 fmt.Println("hello, world")
76 time.Sleep(1 * time.Second)
77 bar.Add(10)
78 // Output:
79 // hello, world
80}
81
82func ExampleOptionThrottle() {
83 bar := NewOptions(100, OptionSetWidth(10), OptionThrottle(100*time.Millisecond))

Callers

nothing calls this directly

Calls 6

NewOptionsFunction · 0.85
OptionSetWidthFunction · 0.85
OptionSetVisibilityFunction · 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…