%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/waritko/go/src/github.com/cheggaaa/pb/
Upload File :
Create Path :
Current File : //home/waritko/go/src/github.com/cheggaaa/pb/example_test.go

package pb_test

import (
	"time"

	"gopkg.in/cheggaaa/pb.v1"
)

func Example() {
	count := 5000
	bar := pb.New(count)

	// show percents (by default already true)
	bar.ShowPercent = true

	// show bar (by default already true)
	bar.ShowBar = true

	bar.ShowCounters = true

	bar.ShowTimeLeft = true

	// and start
	bar.Start()
	for i := 0; i < count; i++ {
		bar.Increment()
		time.Sleep(time.Millisecond)
	}
	bar.FinishPrint("The End!")
}

Zerion Mini Shell 1.0