Skip to content

Instantly share code, notes, and snippets.

@wayneashleyberry
Created October 29, 2015 13:04
Show Gist options
  • Save wayneashleyberry/d78433e344770556fe51 to your computer and use it in GitHub Desktop.
Save wayneashleyberry/d78433e344770556fe51 to your computer and use it in GitHub Desktop.
sweet progress bar for go
package main
import "time"
import "github.com/cheggaaa/pb"
func main() {
count := 100000
bar := pb.StartNew(count)
bar.Format("╢██░╟")
for i := 0; i < count; i++ {
bar.Increment()
time.Sleep(time.Millisecond)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment