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

Function ExampleOptionShowDescriptionAtLineEnd

progressbar_test.go:186–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184}
185
186func ExampleOptionShowDescriptionAtLineEnd() {
187 bar := NewOptions(100, OptionSetWidth(10), OptionShowDescriptionAtLineEnd(), OptionSetDescription("hello"))
188 _ = bar.Add(10)
189 // Output:
190 // 10% |█ | [0s:0s] hello
191}
192
193func ExampleOptionShowDescriptionAtLineEnd_spinner() {
194 bar := NewOptions(-1, OptionSetWidth(10), OptionShowDescriptionAtLineEnd(), OptionSetDescription("hello"))

Callers

nothing calls this directly

Calls 5

NewOptionsFunction · 0.85
OptionSetWidthFunction · 0.85
OptionSetDescriptionFunction · 0.85
AddMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…