Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + const DEFAULT_REFRESH_RATE + const FORMAT + const TIOCGWINSZ — darwin/amd64, linux/amd64 + const TIOCGWINSZ_OSX — darwin/amd64, linux/amd64 + const U_BYTES + const U_NO + var BarEnd string + var BarStart string + var Current string + var CurrentN string + var DefaultRefreshRate = DEFAULT_REFRESH_RATE + var Empty string + func Format(i int64, units int) string + func FormatBytes(i int64) (result string) + type Callback func(out string) + type ProgressBar struct + BarEnd string + BarStart string + Callback Callback + Current string + CurrentN string + Empty string + ForceWidth bool + ManualUpdate bool + NotPrint bool + Output io.Writer + RefreshRate time.Duration + ShowBar bool + ShowCounters bool + ShowFinalTime bool + ShowPercent bool + ShowSpeed bool + ShowTimeLeft bool + Total int64 + Units int + Width int + func New(total int) (pb *ProgressBar) + func New64(total int64) (pb *ProgressBar) + func StartNew(total int) (pb *ProgressBar) + func (pb *ProgressBar) Add(add int) int + func (pb *ProgressBar) Add64(add int64) int64 + func (pb *ProgressBar) Finish() + func (pb *ProgressBar) FinishPrint(str string) + func (pb *ProgressBar) Format(format string) (bar *ProgressBar) + func (pb *ProgressBar) Increment() int + func (pb *ProgressBar) NewProxyReader(r io.Reader) *Reader + func (pb *ProgressBar) Postfix(postfix string) (bar *ProgressBar) + func (pb *ProgressBar) Prefix(prefix string) (bar *ProgressBar) + func (pb *ProgressBar) Read(p []byte) (n int, err error) + func (pb *ProgressBar) Set(current int) + func (pb *ProgressBar) SetMaxWidth(width int) (bar *ProgressBar) + func (pb *ProgressBar) SetRefreshRate(rate time.Duration) (bar *ProgressBar) + func (pb *ProgressBar) SetUnits(units int) (bar *ProgressBar) + func (pb *ProgressBar) SetWidth(width int) (bar *ProgressBar) + func (pb *ProgressBar) Start() + func (pb *ProgressBar) Update() + func (pb *ProgressBar) Write(p []byte) (n int, err error) + type Reader struct + func (r *Reader) Read(p []byte) (n int, err error)