From 3d0735ae7bd83e125fe1809cb321244034836643 Mon Sep 17 00:00:00 2001 From: maride Date: Fri, 27 Oct 2023 15:44:07 +0200 Subject: [PATCH] Inform user --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index c05ce51..9d4fb84 100644 --- a/main.go +++ b/main.go @@ -89,6 +89,9 @@ func process(ip net.IP, domains []string) { lines[lPos] = fmt.Sprintf("%s %s", hostLine, newDomains) } found = true + + // Inform user + fmt.Printf("Updated the line for '%s' to include '%s'", ipString, newDomains) } } @@ -98,6 +101,9 @@ func process(ip net.IP, domains []string) { date := time.Now().Format("02-01-2006") newLine := fmt.Sprintf("%s\t%s # Added by ghost on %s", ipString, newDomains, date) lines = append(lines, newLine) + + // Inform user + fmt.Printf("Appended line for '%s' to include '%s'", ipString, newDomains) } // Write out again