github.com/Telefonica/ping (go): Package ping is a simple but powerful ICMP echo (ping) library.  Here is a very simple example that sends and receives three packets:  Here is an example that emulates the traditional UNIX ping command:  It sends ICMP Echo Request packet(s) and waits for an Echo Reply in response. If it receives a response, it calls the OnRecv callback. When it's finished, it calls the OnFinish callback.  For a full ping example, see "cmd/ping/ping.go".
Keywords: cdco