// Reader returns a progress bar reader.
Reader returns a progress bar reader.
// Reader returns a progress bar reader .
func Reader(size int, r io.ReadCloser) io.ReadCloser {
	bars := pb.New()
	bars.Width = 50
	bars.AddBar(size)
	bars.Start()
	bars.SetRefreshInterval(50 * time.Millisecond)
	bars.Bars[0].AppendCompleted()
	return &reader{
		bars: bars,
		r:    r,
	}
}
func Reader ( size int , r io . ReadCloser ) io . ReadCloser { bars := pb . New ( ) bars . Width = 50 bars . AddBar ( size ) bars . Start ( ) bars . SetRefreshInterval ( 50 * time . Millisecond ) bars . Bars [ 0 ] . AppendCompleted ( ) return & reader { bars : bars , r : r , } }
Reader returns a progress bar reader.
Reader returns a progress bar reader .