Codebase list golang-github-vbauerster-mpb / 192e157
v8 Vladimir Bauer 3 years ago
16 changed file(s) with 24 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
00 # Multi Progress Bar
11
2 [![GoDoc](https://pkg.go.dev/badge/github.com/vbauerster/mpb)](https://pkg.go.dev/github.com/vbauerster/mpb/v7)
2 [![GoDoc](https://pkg.go.dev/badge/github.com/vbauerster/mpb)](https://pkg.go.dev/github.com/vbauerster/mpb/v8)
33 [![Test status](https://github.com/vbauerster/mpb/actions/workflows/test.yml/badge.svg)](https://github.com/vbauerster/mpb/actions/workflows/test.yml)
44 [![Donate with PayPal](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/vbauerster)
55
2525 "math/rand"
2626 "time"
2727
28 "github.com/vbauerster/mpb/v7"
29 "github.com/vbauerster/mpb/v7/decor"
28 "github.com/vbauerster/mpb/v8"
29 "github.com/vbauerster/mpb/v8/decor"
3030 )
3131
3232 func main() {
1111
1212 "github.com/acarl005/stripansi"
1313 "github.com/mattn/go-runewidth"
14 "github.com/vbauerster/mpb/v7/decor"
14 "github.com/vbauerster/mpb/v8/decor"
1515 )
1616
1717 // Bar represents a progress bar.
22 import (
33 "io"
44
5 "github.com/vbauerster/mpb/v7/decor"
5 "github.com/vbauerster/mpb/v8/decor"
66 )
77
88 // BarFiller interface.
44
55 "github.com/acarl005/stripansi"
66 "github.com/mattn/go-runewidth"
7 "github.com/vbauerster/mpb/v7/decor"
8 "github.com/vbauerster/mpb/v7/internal"
7 "github.com/vbauerster/mpb/v8/decor"
8 "github.com/vbauerster/mpb/v8/internal"
99 )
1010
1111 const (
22 import (
33 "io"
44
5 "github.com/vbauerster/mpb/v7/decor"
5 "github.com/vbauerster/mpb/v8/decor"
66 )
77
88 // NopStyle provides BarFillerBuilder which builds NOP BarFiller.
55
66 "github.com/acarl005/stripansi"
77 "github.com/mattn/go-runewidth"
8 "github.com/vbauerster/mpb/v7/decor"
9 "github.com/vbauerster/mpb/v7/internal"
8 "github.com/vbauerster/mpb/v8/decor"
9 "github.com/vbauerster/mpb/v8/internal"
1010 )
1111
1212 const (
33 "bytes"
44 "io"
55
6 "github.com/vbauerster/mpb/v7/decor"
6 "github.com/vbauerster/mpb/v8/decor"
77 )
88
99 // BarOption is a func option to alter default behavior of a bar.
1010 "time"
1111 "unicode/utf8"
1212
13 "github.com/vbauerster/mpb/v7"
14 "github.com/vbauerster/mpb/v7/decor"
13 "github.com/vbauerster/mpb/v8"
14 "github.com/vbauerster/mpb/v8/decor"
1515 )
1616
1717 func TestBarCompleted(t *testing.T) {
0 // Package decor provides common decorators for "github.com/vbauerster/mpb/v7" module.
0 // Package decor provides common decorators for "github.com/vbauerster/mpb/v8" module.
11 //
22 // Some decorators returned by this package might have a closure state. It is ok to use
33 // decorators concurrently, unless you share the same decorator among multiple
33 "fmt"
44 "strconv"
55
6 "github.com/vbauerster/mpb/v7/internal"
6 "github.com/vbauerster/mpb/v8/internal"
77 )
88
99 type percentageType float64
33 "sync"
44 "testing"
55
6 "github.com/vbauerster/mpb/v7"
7 "github.com/vbauerster/mpb/v7/decor"
6 "github.com/vbauerster/mpb/v8"
7 "github.com/vbauerster/mpb/v8/decor"
88 )
99
1010 func TestNameDecorator(t *testing.T) {
66 "math/rand"
77 "time"
88
9 "github.com/vbauerster/mpb/v7"
10 "github.com/vbauerster/mpb/v7/decor"
9 "github.com/vbauerster/mpb/v8"
10 "github.com/vbauerster/mpb/v8/decor"
1111 )
1212
1313 func Example() {
0 module github.com/vbauerster/mpb/v7
0 module github.com/vbauerster/mpb/v8
11
22 require (
33 github.com/VividCortex/ewma v1.2.0
1010 "sync"
1111 "time"
1212
13 "github.com/vbauerster/mpb/v7/cwriter"
13 "github.com/vbauerster/mpb/v8/cwriter"
1414 )
1515
1616 const (
66 "testing"
77 "time"
88
9 "github.com/vbauerster/mpb/v7"
10 "github.com/vbauerster/mpb/v7/decor"
9 "github.com/vbauerster/mpb/v8"
10 "github.com/vbauerster/mpb/v8/decor"
1111 )
1212
1313 const (
66 "strings"
77 "testing"
88
9 "github.com/vbauerster/mpb/v7"
9 "github.com/vbauerster/mpb/v8"
1010 )
1111
1212 const content = `Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do