Codebase list golang-github-vbauerster-mpb / 6a57012
mod v6 Vladimir Bauer 5 years ago
17 changed file(s) with 26 addition(s) and 26 deletion(s). Raw diff Collapse all Expand all
2525 "math/rand"
2626 "time"
2727
28 "github.com/vbauerster/mpb/v5"
29 "github.com/vbauerster/mpb/v5/decor"
28 "github.com/vbauerster/mpb/v6"
29 "github.com/vbauerster/mpb/v6/decor"
3030 )
3131
3232 func main() {
1111
1212 "github.com/acarl005/stripansi"
1313 "github.com/mattn/go-runewidth"
14 "github.com/vbauerster/mpb/v5/decor"
14 "github.com/vbauerster/mpb/v6/decor"
1515 )
1616
1717 // Bar represents a progress Bar.
22 import (
33 "io"
44
5 "github.com/vbauerster/mpb/v5/decor"
5 "github.com/vbauerster/mpb/v6/decor"
66 )
77
88 // BarFiller interface.
55 "unicode/utf8"
66
77 "github.com/mattn/go-runewidth"
8 "github.com/vbauerster/mpb/v5/decor"
9 "github.com/vbauerster/mpb/v5/internal"
8 "github.com/vbauerster/mpb/v6/decor"
9 "github.com/vbauerster/mpb/v6/internal"
1010 )
1111
1212 const (
44 "strings"
55
66 "github.com/mattn/go-runewidth"
7 "github.com/vbauerster/mpb/v5/decor"
8 "github.com/vbauerster/mpb/v5/internal"
7 "github.com/vbauerster/mpb/v6/decor"
8 "github.com/vbauerster/mpb/v6/internal"
99 )
1010
1111 // SpinnerAlignment enum.
33 "bytes"
44 "io"
55
6 "github.com/vbauerster/mpb/v5/decor"
7 "github.com/vbauerster/mpb/v5/internal"
6 "github.com/vbauerster/mpb/v6/decor"
7 "github.com/vbauerster/mpb/v6/internal"
88 )
99
1010 // BarOption is a function option which changes the default behavior of a bar.
99 "time"
1010 "unicode/utf8"
1111
12 "github.com/vbauerster/mpb/v5"
13 "github.com/vbauerster/mpb/v5/decor"
12 "github.com/vbauerster/mpb/v6"
13 "github.com/vbauerster/mpb/v6/decor"
1414 )
1515
1616 func TestBarCompleted(t *testing.T) {
33 "io/ioutil"
44 "testing"
55
6 "github.com/vbauerster/mpb/v5/decor"
6 "github.com/vbauerster/mpb/v6/decor"
77 )
88
99 func BenchmarkIncrSingleBar(b *testing.B) {
55 "sync"
66 "time"
77
8 "github.com/vbauerster/mpb/v5/internal"
8 "github.com/vbauerster/mpb/v6/internal"
99 )
1010
1111 // ContainerOption is a function option which changes the default
00 /*
1 Package decor provides common decorators for "github.com/vbauerster/mpb/v5" module.
1 Package decor provides common decorators for "github.com/vbauerster/mpb/v6" module.
22
33 Some decorators returned by this package might have a closure state. It is ok to use
44 decorators concurrently, unless you share the same decorator among multiple
44 "io"
55 "strconv"
66
7 "github.com/vbauerster/mpb/v5/internal"
7 "github.com/vbauerster/mpb/v6/internal"
88 )
99
1010 type percentageType float64
33 "sync"
44 "testing"
55
6 "github.com/vbauerster/mpb/v5"
7 "github.com/vbauerster/mpb/v5/decor"
6 "github.com/vbauerster/mpb/v6"
7 "github.com/vbauerster/mpb/v6/decor"
88 )
99
1010 func TestNameDecorator(t *testing.T) {
66 "math/rand"
77 "time"
88
9 "github.com/vbauerster/mpb/v5"
10 "github.com/vbauerster/mpb/v5/decor"
9 "github.com/vbauerster/mpb/v6"
10 "github.com/vbauerster/mpb/v6/decor"
1111 )
1212
1313 func Example() {
0 module github.com/vbauerster/mpb/v5
0 module github.com/vbauerster/mpb/v6
11
22 require (
33 github.com/VividCortex/ewma v1.1.1
1212 "sync"
1313 "time"
1414
15 "github.com/vbauerster/mpb/v5/cwriter"
16 "github.com/vbauerster/mpb/v5/decor"
15 "github.com/vbauerster/mpb/v6/cwriter"
16 "github.com/vbauerster/mpb/v6/decor"
1717 )
1818
1919 const (
88 "testing"
99 "time"
1010
11 "github.com/vbauerster/mpb/v5"
12 "github.com/vbauerster/mpb/v5/decor"
11 "github.com/vbauerster/mpb/v6"
12 "github.com/vbauerster/mpb/v6/decor"
1313 )
1414
1515 func init() {
66 "strings"
77 "testing"
88
9 "github.com/vbauerster/mpb/v5"
9 "github.com/vbauerster/mpb/v6"
1010 )
1111
1212 const content = `Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do