Documentation ¶ Overview ¶ Package progress provides a progress bar. Index ¶ func View(m Model) string type Model Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func View ¶ func View(m Model) string View function. Types ¶ type Model ¶ type Model struct { // Filled bar character, defaulting to '█'. Filled string // Empty bar character, defaulting to '░'. Empty string // Width of the progress bar, defaulting to 24. Width int // Percentage of completion from 0-1. Percent float64 } Model is the progress bar model. Source Files ¶ View all Source files progress.go Click to show internal directories. Click to hide internal directories.