// fmtDuration formats a duration into a hh:mm:ss format
fmtDuration formats a duration into a hh:mm:ss format
// fmtDuration formats a duration into a hh : mm : ss format
func fmtDuration(dur time.Duration) string {
	remainingDur := dur.Round(time.Second)
	hours := remainingDur / time.Hour
	remainingDur -= hours * time.Hour
	minutes := remainingDur / time.Minute
	remainingDur -= minutes * time.Minute
	seconds := remainingDur / time.Second
	return fmt.Sprintf("%02d:%02d:%02d", hours, minutes, seconds)
}
func fmtDuration ( dur time . Duration ) string { remainingDur := dur . Round ( time . Second ) hours := remainingDur / time . Hour remainingDur -= hours * time . Hour minutes := remainingDur / time . Minute remainingDur -= minutes * time . Minute seconds := remainingDur / time . Second return fmt . Sprintf ( " " , hours , minutes , seconds ) }
fmtDuration formats a duration into a hh:mm:ss format
fmtDuration formats a duration into a hh : mm : ss format