We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version go1.7.4 darwin/amd64 macos 10.12.1
use readme code
package main import ( "math/rand" "sync" "time" "gopkg.in/cheggaaa/pb.v1" ) func main() { // create bars first := pb.New(200).Prefix("First ") second := pb.New(200).Prefix("Second ") third := pb.New(200).Prefix("Third ") // start pool pool, err := pb.StartPool(first, second, third) if err != nil { panic(err) } // update bars wg := new(sync.WaitGroup) for _, bar := range []*pb.ProgressBar{first, second, third} { wg.Add(1) go func(cb *pb.ProgressBar) { for n := 0; n < 200; n++ { cb.Increment() time.Sleep(time.Millisecond * time.Duration(rand.Intn(100))) } cb.Finish() wg.Done() }(bar) } wg.Wait() // close pool pool.Stop() }
The text was updated successfully, but these errors were encountered:
Works for macOS 10.12.3 & go version go1.7.5 darwin/amd64.
Sorry, something went wrong.
I get this issue when running this example by the supervisor in Linux. If running it in console or redirect output to file it is working.
No branches or pull requests
go version go1.7.4 darwin/amd64
macos 10.12.1
use readme code
The text was updated successfully, but these errors were encountered: