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