Registry / networking / digineo-go-ping

digineo-go-ping

JSON →
library1.2.0gogounverified

A Go library for sending ICMP echo requests (ping) to hosts.

go get github.com/digineo/go-ping
INSTALL
IMPORT
SIG · DIGINEO-GO-PING
D
digineo-go-ping
networkinggov1.2.0
harness data pending
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.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
digineo-go-ping — go get digineo-go-ping · libregistry