String returns the current rendered version of the progress bar. It will never return an empty string while the progress bar is running.
()
| 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. |
| 602 | func (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 |
| 607 | func (p *ProgressBar) RenderBlank() error { |
no outgoing calls