mirror of
https://github.com/bit1001/tdl.git
synced 2025-01-07 20:28:11 +08:00
15 lines
309 B
Go
15 lines
309 B
Go
package progress
|
|
|
|
import "github.com/jedib0t/go-pretty/v6/progress"
|
|
|
|
func AppendTracker(pw progress.Writer, message string, total int64) *progress.Tracker {
|
|
tracker := progress.Tracker{
|
|
Message: message,
|
|
Total: total,
|
|
Units: progress.UnitsBytes,
|
|
}
|
|
|
|
pw.AppendTracker(&tracker)
|
|
|
|
return &tracker
|
|
}
|