MCPcopy Create free account
hub / github.com/schollz/progressbar / OptionShowBytes

Function OptionShowBytes

progressbar.go:375–379  ·  view source on GitHub ↗

OptionShowBytes will update the progress bar configuration settings to display/hide kBytes/Sec

(val bool)

Source from the content-addressed store, hash-verified

373// OptionShowBytes will update the progress bar
374// configuration settings to display/hide kBytes/Sec
375func OptionShowBytes(val bool) Option {
376 return func(p *ProgressBar) {
377 p.config.showBytes = val
378 }
379}
380
381// OptionUseANSICodes will use more optimized terminal i/o.
382//

Callers 10

DefaultBytesFunction · 0.85
DefaultBytesSilentFunction · 0.85
TestSpinnerClearOnFinishFunction · 0.85
TestSpinnerFinishFunction · 0.85
TestBarSmallBytesFunction · 0.85
TestBarFastBytesFunction · 0.85
TestReaderToBufferFunction · 0.85

Calls

no outgoing calls

Tested by 8

TestSpinnerClearOnFinishFunction · 0.68
TestSpinnerFinishFunction · 0.68
TestBarSmallBytesFunction · 0.68
TestBarFastBytesFunction · 0.68
TestReaderToBufferFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…