Skip to content

Commit

Permalink
(feat) better messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Apr 7, 2024
1 parent b5ac596 commit 48e686a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func main() {
countPerDomain := pkg.CountPerDomain(hc.Emails)
color.Warn.Print("Domains")
color.Secondary.Print(".....................")
fmt.Printf("%d domains\n", len(countPerDomain))
fmt.Printf("%d email domains\n", len(countPerDomain))
i := 0
for domain, count := range countPerDomain {
i++
Expand All @@ -90,7 +90,7 @@ func main() {
color.Secondary.Print(fmt.Sprintf("%d more domains\n", len(countPerDomain)-i+1))
break
}
fmt.Printf("(%d) %s \n", count, domain)
fmt.Printf("(%d) @%s \n", count, domain)
}
}

Expand All @@ -109,7 +109,9 @@ func main() {
endTime := time.Now()
color.Warn.Print("Time taken")
color.Secondary.Print("..................")
fmt.Println(endTime.Sub(startTime))
durationInSeconds := float64(endTime.Sub(startTime).Seconds())
formattedDuration := fmt.Sprintf("%.2f seconds", durationInSeconds)
fmt.Println(formattedDuration)
}

func SetupFlags() {
Expand Down

0 comments on commit 48e686a

Please sign in to comment.