A Ping CLI application. The CLI app accepts a hostname or an IP address as its argument and provide support for both IPv4 and IPv6. It can send ICMP "echo requests" in an infinite loop to the target while receiving "echo reply" messages, if count flag is not mentioned. It reports loss and RTT times for each sent message.
go install .
sudo pingApp ping host [--count] [--interval]
Examples:
# ping google continuously
$ sudo pingApp ping google.com
# ping google 5 times
$ sudo pingApp ping --count 5 google.com
# ping google 5 times at 2 seconds intervals
$ sudo pingApp ping google.com --count 3 --interval 2
To run the tests use the command:
sudo go test