barpool

package
v1.97.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package barpool provides access to the global pool of progress bars, so they could be rendered altogether.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(bar *pb.ProgressBar)

Add adds bar to the global pool

func AddWithTemplate

func AddWithTemplate(format string, total int) *pb.ProgressBar

AddWithTemplate adds bar with the given template to the global pool

func NewSingleProgress added in v1.92.0

func NewSingleProgress(format string, total int) *pb.ProgressBar

NewSingleProgress returns progress bar with given template

func Start

func Start() error

Start starts the global pool Must be called after all progress bars were added

func Stop

func Stop()

Stop stops the global pool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL