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

Function ExampleOptionClearOnFinish

progressbar_test.go:93–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func ExampleOptionClearOnFinish() {
94 bar := NewOptions(100, OptionSetWidth(10), OptionClearOnFinish())
95 bar.Reset()
96 bar.Finish()
97 fmt.Println("Finished")
98 // Output:
99 // Finished
100}
101
102func TestSpinnerClearOnFinish(t *testing.T) {
103 buf := strings.Builder{}

Callers

nothing calls this directly

Calls 5

NewOptionsFunction · 0.85
OptionSetWidthFunction · 0.85
OptionClearOnFinishFunction · 0.85
ResetMethod · 0.80
FinishMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…