refactor: remove example
Vladimir Bauer
9 years ago
| 18 | 18 | p := mpb.New(nil).SetWidth(64) |
| 19 | 19 | // p := mpb.New(nil).RefreshRate(100 * time.Millisecond).SetWidth(64) |
| 20 | 20 | |
| 21 | name1 := "Bar#1: " | |
| 21 | name1 := "Bar#1:" | |
| 22 | 22 | bar1 := p.AddBar(50). |
| 23 | PrependName(name1, len(name1)).PrependETA(4). | |
| 24 | AppendPercentage().TrimRightSpace() | |
| 23 | PrependName(name1, 0, mpb.DwidthSync|mpb.DidentRight). | |
| 24 | PrependETA(4, mpb.DwidthSync|mpb.DextraSpace). | |
| 25 | AppendPercentage(5, 0) | |
| 25 | 26 | wg.Add(1) |
| 26 | 27 | go func() { |
| 27 | 28 | defer wg.Done() |
| 34 | 35 | }() |
| 35 | 36 | |
| 36 | 37 | bar2 := p.AddBar(100). |
| 37 | PrependName("", 0-len(name1)).PrependETA(4). | |
| 38 | AppendPercentage().TrimRightSpace() | |
| 38 | PrependName("", 0, mpb.DwidthSync). | |
| 39 | PrependETA(4, mpb.DwidthSync|mpb.DextraSpace). | |
| 40 | AppendPercentage(5, 0) | |
| 39 | 41 | wg.Add(1) |
| 40 | 42 | go func() { |
| 41 | 43 | defer wg.Done() |
| 52 | 54 | }() |
| 53 | 55 | |
| 54 | 56 | bar3 := p.AddBar(80). |
| 55 | PrependName("Bar#3: ", 0).PrependETA(4). | |
| 56 | AppendPercentage().TrimRightSpace() | |
| 57 | PrependName("Bar#3:", 0, mpb.DwidthSync|mpb.DidentRight). | |
| 58 | PrependETA(4, mpb.DwidthSync|mpb.DextraSpace). | |
| 59 | AppendPercentage(5, 0) | |
| 57 | 60 | wg.Add(1) |
| 58 | 61 | go func() { |
| 59 | 62 | defer wg.Done() |