Implementing ICMP ping in Go

Issue

Is it possible to implement an ICMP ping in Go? The alternative is to fork a ‘ping’ process, but I’d rather write it in Go.

Solution

Currently, the ICMP Echo (Ping) function isn’t supported in the Go net package.

There’s no support for sending ICMP
echo requests. You’d have to add
support to package net. ping

Answered By – peterSO

Answer Checked By – Gilberto Lyons (GoLangFix Admin)

Leave a Reply

Your email address will not be published.