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

Method String

progressbar.go:602–604  ·  view source on GitHub ↗

String returns the current rendered version of the progress bar. It will never return an empty string while the progress bar is running.

()

Source from the content-addressed store, hash-verified

600// String returns the current rendered version of the progress bar.
601// It will never return an empty string while the progress bar is running.
602func (p *ProgressBar) String() string {
603 return p.state.rendered
604}
605
606// RenderBlank renders the current bar state, you can use this to render a 0% state
607func (p *ProgressBar) RenderBlank() error {

Callers 15

renderDetailsMethod · 0.80
StartHTTPServerMethod · 0.80
renderProgressBarFunction · 0.80
TestSpinnerClearOnFinishFunction · 0.80
TestSpinnerFinishFunction · 0.80
TestBarSlowAddFunction · 0.80
TestBarSmallBytesFunction · 0.80
TestBarFastBytesFunction · 0.80
TestOptionSetThemeFunction · 0.80
TestOptionSetThemeFilledFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestSpinnerClearOnFinishFunction · 0.64
TestSpinnerFinishFunction · 0.64
TestBarSlowAddFunction · 0.64
TestBarSmallBytesFunction · 0.64
TestBarFastBytesFunction · 0.64
TestOptionSetThemeFunction · 0.64
TestOptionSetThemeFilledFunction · 0.64
TestOptionSetPredictTimeFunction · 0.64
TestOptionSetElapsedTimeFunction · 0.64