Skip to content

Commit 3eea187

Browse files
committed
Use , as column separator in output
1 parent db16f59 commit 3eea187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ptr.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func processIPs(ipChannel <-chan string, wg *sync.WaitGroup) {
128128
for ip := range ipChannel {
129129
ptrDomainNames, err := net.LookupAddr(ip)
130130
if err != nil {
131-
fmt.Printf("%s\t%v\n", ip, err)
131+
fmt.Printf("%s,%v\n", ip, err)
132132
continue
133133
}
134134

@@ -146,6 +146,6 @@ func processIPs(ipChannel <-chan string, wg *sync.WaitGroup) {
146146
cleanedDomainNames = append(cleanedDomainNames, ptrDomainName)
147147
}
148148

149-
fmt.Printf("%s\t%s\n", ip, strings.Join(cleanedDomainNames, "\n"))
149+
fmt.Printf("%s,%s\n", ip, strings.Join(cleanedDomainNames, "\n"))
150150
}
151151
}

0 commit comments

Comments
 (0)