# Packages
No description provided by the author
# Functions
No description provided by the author
New creates new ProgressBar object.
New64 creates new ProgressBar object using int64 as total.
RegisterElement give you a chance to use custom elements.
Start64 starts new ProgressBar with Default template.
StartNew starts new ProgressBar with Default template.
No description provided by the author
No description provided by the author
# Constants
Bytes means we're working with byte sizes.
Color by default is true when output is tty, but you can set to false for disabling colors.
ReturnSymbol - by default in terminal mode it's '\r'.
Use SI bytes prefix names (kB, MB, etc) instead of IEC prefix names (KiB, MiB, etc).
Static means progress bar will not update automaticly.
Terminal means we're will print to terminal and can use ascii sequences Also we're will try to use terminal width.
Version of ProgressBar library.
# Variables
Default - preset like Full but without elapsed time Example: 'Prefix 20/100 [-->______] 20% 1 p/s ETA 1m Suffix'.
ElementBar make progress bar view [-->__] Optionally can take up to 5 string arguments.
ElementCounters shows current and total values.
ElementCycle return next argument for every call In template use as follows: {{cycle .
ElementElapsedTime shows elapsed time Optionally cat take one argument - it's format for time string.
ElementPercent shows current percent of progress.
ElementRemainingTime calculates remaining time based on speed (EWMA) Optionally can take one or two string arguments.
ElementSpeed calculates current speed by EWMA Optionally can take one or two string arguments.
ElementString get value from bar by given key and print them bar.Set("myKey", "string to print") In template use as follows: {{string .
Full - preset with all default available elements Example: 'Prefix 20/100 [-->______] 20% 1 p/s ETA 1m Suffix'.
Simple - preset without speed and any timers.
# Structs
ProgressBar is the main object of bar.
Reader it's a wrapper for given reader, but with progress handle.
State represents the current state of bar Need for bar elements.
Writer it's a wrapper for given writer, but with progress handle.
# Interfaces
Element is an interface for bar elements.
# Type aliases
ElementFunc type implements Element interface and created for simplify elements.
ProgressBarTemplate that template string.