Documentation
¶
Index ¶
- type Progress
- func (p *Progress) Elapsed() time.Duration
- func (p *Progress) Reset()
- func (p *Progress) SetProgress(title, currentFile string, currentNum, totalFiles int, ...)
- func (p *Progress) SetShowElapsed(show bool)
- func (p *Progress) SetSize(width int)
- func (p *Progress) Start()
- func (p *Progress) View() string
- type ProgressUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Progress ¶
type Progress struct {
Title string
CurrentFile string
CurrentFileNum int
TotalFiles int
BytesTransferred int64
TotalBytes int64
// contains filtered or unexported fields
}
Progress represents a progress bar display with elapsed time tracking
func (*Progress) Reset ¶
func (p *Progress) Reset()
Reset resets the progress state including the timer
func (*Progress) SetProgress ¶
func (p *Progress) SetProgress(title, currentFile string, currentNum, totalFiles int, transferred, total int64)
SetProgress updates the progress state
func (*Progress) SetShowElapsed ¶
SetShowElapsed controls whether elapsed time is displayed
Click to show internal directories.
Click to hide internal directories.