Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ping
✓ github.com/digineo/go-ping
Creates a pinger, sends 3 ICMP echo requests, and prints statistics.
package main
import (
"fmt"
"github.com/digineo/go-ping"
)
func main() {
pinger, err := ping.NewPinger("8.8.8.8")
if err != nil {
panic(err)
}
pinger.Count = 3
pinger.Run()
stats := pinger.Statistics()
fmt.Printf("Sent: %d, Received: %d\n", stats.PacketsSent, stats.PacketsRecv)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.