()
| 61 | } |
| 62 | |
| 63 | func ExampleProgressBar_basic() { |
| 64 | bar := NewOptions(100, OptionSetWidth(10)) |
| 65 | bar.Reset() |
| 66 | time.Sleep(1 * time.Second) |
| 67 | bar.Add(10) |
| 68 | // Output: |
| 69 | // 10% |█ | [1s:9s] |
| 70 | } |
| 71 | |
| 72 | func ExampleProgressBar_invisible() { |
| 73 | bar := NewOptions(100, OptionSetWidth(10), OptionSetRenderBlankState(true), OptionSetVisibility(false)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…