preset.go 790 B

123456789101112131415
  1. package pb
  2. var (
  3. // Full - preset with all default available elements
  4. // Example: 'Prefix 20/100 [-->______] 20% 1 p/s ETA 1m Suffix'
  5. Full ProgressBarTemplate = `{{string . "prefix"}}{{counters . }} {{bar . }} {{percent . }} {{speed . }} {{rtime . "ETA %s"}}{{string . "suffix"}}`
  6. // Default - preset like Full but without elapsed time
  7. // Example: 'Prefix 20/100 [-->______] 20% 1 p/s ETA 1m Suffix'
  8. Default ProgressBarTemplate = `{{string . "prefix"}}{{counters . }} {{bar . }} {{percent . }} {{speed . }}{{string . "suffix"}}`
  9. // Simple - preset without speed and any timers. Only counters, bar and percents
  10. // Example: 'Prefix 20/100 [-->______] 20% Suffix'
  11. Simple ProgressBarTemplate = `{{string . "prefix"}}{{counters . }} {{bar . }} {{percent . }}{{string . "suffix"}}`
  12. )