diff --git a/bar.go b/bar.go index 0ab6c4c..7a6cf31 100644 --- a/bar.go +++ b/bar.go @@ -1,4 +1,4 @@ -package uiprogress +package mpb import ( "fmt" diff --git a/example/multi/multi.go b/example/multi/multi.go index 1216aa2..551a5d4 100644 --- a/example/multi/multi.go +++ b/example/multi/multi.go @@ -5,7 +5,7 @@ "math/rand" "time" - "github.com/vbauerster/uiprogress" + "github.com/vbauerster/mpb" ) const ( @@ -13,12 +13,12 @@ ) func main() { - decor := func(s *uiprogress.Statistics) string { + decor := func(s *mpb.Statistics) string { str := fmt.Sprintf("%d/%d", s.Completed, s.Total) return fmt.Sprintf("%-7s", str) } - p := uiprogress.New().RefreshRate(80 * time.Millisecond) + p := mpb.New().RefreshRate(80 * time.Millisecond) bar1 := p.AddBar(50).AppendETA().PrependFunc(decor) go func() { diff --git a/progress.go b/progress.go index 6944c17..e5bf49d 100644 --- a/progress.go +++ b/progress.go @@ -1,4 +1,4 @@ -package uiprogress +package mpb import ( "fmt"