Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProgressBar ¶
NewProgressBar creates a new progress bar with the specified action and color. It takes the action string and color as input and returns a channel for controlling the progress bar. The progress bar is updated at regular intervals and can be stopped by closing the returned channel. The color parameter specifies the color of the progress bar. Example usage:
progressChan := NewProgressBar("Downloading", ColorBlue)
// Perform download operation
close(progressChan) // Stop the progress bar
Note: It is important to close the returned channel to stop the progress bar and free resources.
Types ¶
Click to show internal directories.
Click to hide internal directories.