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

Function OptionSetWriter

progressbar.go:259–263  ·  view source on GitHub ↗

OptionSetWriter sets the output writer (defaults to os.StdOut)

(w io.Writer)

Source from the content-addressed store, hash-verified

257
258// OptionSetWriter sets the output writer (defaults to os.StdOut)
259func OptionSetWriter(w io.Writer) Option {
260 return func(p *ProgressBar) {
261 p.config.writer = w
262 }
263}
264
265// OptionSetRenderBlankState sets whether or not to render a 0% bar on construction
266func OptionSetRenderBlankState(r bool) Option {

Callers 15

DefaultBytesFunction · 0.85
DefaultBytesSilentFunction · 0.85
DefaultFunction · 0.85
DefaultSilentFunction · 0.85
BenchmarkRenderFunction · 0.85
TestSpinnerClearOnFinishFunction · 0.85
TestSpinnerFinishFunction · 0.85
TestBarSlowAddFunction · 0.85
TestBarSmallBytesFunction · 0.85
TestBarFastBytesFunction · 0.85

Calls

no outgoing calls

Tested by 15

BenchmarkRenderFunction · 0.68
TestSpinnerClearOnFinishFunction · 0.68
TestSpinnerFinishFunction · 0.68
TestBarSlowAddFunction · 0.68
TestBarSmallBytesFunction · 0.68
TestBarFastBytesFunction · 0.68
TestBasicSetsFunction · 0.68
TestOptionSetThemeFunction · 0.68
TestOptionSetThemeFilledFunction · 0.68
TestOptionSetPredictTimeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…