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

Function OptionSetWidth

progressbar.go:202–206  ·  view source on GitHub ↗

OptionSetWidth sets the width of the bar

(s int)

Source from the content-addressed store, hash-verified

200
201// OptionSetWidth sets the width of the bar
202func OptionSetWidth(s int) Option {
203 return func(p *ProgressBar) {
204 p.config.width = s
205 }
206}
207
208// OptionSetSpinnerChangeInterval sets the spinner change interval
209// the spinner will change according to this value.

Callers 15

DefaultBytesFunction · 0.85
DefaultBytesSilentFunction · 0.85
DefaultFunction · 0.85
DefaultSilentFunction · 0.85
ExampleProgressBar_basicFunction · 0.85
ExampleOptionThrottleFunction · 0.85
TestSpinnerClearOnFinishFunction · 0.85
TestSpinnerFinishFunction · 0.85

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…