feat: add CTA after download and mention it in README

This commit is contained in:
Mathis Maquenne
2025-09-11 00:32:42 +02:00
parent 9d87f635d0
commit e4c421ff00
2 changed files with 21 additions and 0 deletions
+11
View File
@@ -2,6 +2,7 @@ package downloader
import (
"fmt"
"math/rand"
"os"
"time"
@@ -109,5 +110,15 @@ Files saved to: %s
elapsed.Round(time.Second),
outputDir,
)
if pt.stats.downloaded > 0 {
pt.showSupportMessage()
}
}
}
func (pt *progressTracker) showSupportMessage() {
if rand.Float64() < 0.1 {
fmt.Printf("\n💖 Enjoying GoDeez? Give us a ⭐ on GitHub: https://github.com/mathismqn/godeez\n")
}
}