{"id":15323726,"url":"https://github.com/mvrilo/go-fastping","last_synced_at":"2025-10-09T10:31:31.882Z","repository":{"id":30813075,"uuid":"34370243","full_name":"mvrilo/go-fastping","owner":"mvrilo","description":"ICMP ping library for Go inspired by AnyEvent::FastPing Perl module","archived":false,"fork":true,"pushed_at":"2015-04-22T13:57:57.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T19:02:13.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"tatsushid/go-fastping","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mvrilo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-22T05:15:05.000Z","updated_at":"2015-04-22T05:15:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mvrilo/go-fastping","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mvrilo/go-fastping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvrilo%2Fgo-fastping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvrilo%2Fgo-fastping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvrilo%2Fgo-fastping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvrilo%2Fgo-fastping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvrilo","download_url":"https://codeload.github.com/mvrilo/go-fastping/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvrilo%2Fgo-fastping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001275,"owners_count":26083040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T09:21:26.007Z","updated_at":"2025-10-09T10:31:31.608Z","avatar_url":"https://github.com/mvrilo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-fastping\n===========\n\ngo-fastping is a Go language's ICMP ping library inspired by AnyEvent::FastPing\nPerl module to send ICMP ECHO REQUEST packets quickly. Original Perl module is\navailable at\nhttp://search.cpan.org/~mlehmann/AnyEvent-FastPing-2.01/\n\nIt hasn't been fully implemented original functions yet.\n\n[![GoDoc](https://godoc.org/github.com/tatsushid/go-fastping?status.svg)](https://godoc.org/github.com/tatsushid/go-fastping)\n\n## Installation\n\nInstall and update this go package with `go get -u github.com/tatsushid/go-fastping`\n\n## Examples\n\nImport this package and write\n\n```go\np := fastping.NewPinger()\nra, err := net.ResolveIPAddr(\"ip4:icmp\", os.Args[1])\nif err != nil {\n\tfmt.Println(err)\n\tos.Exit(1)\n}\np.AddIPAddr(ra)\np.OnRecv = func(addr *net.IPAddr, rtt time.Duration) {\n\tfmt.Printf(\"IP Addr: %s receive, RTT: %v\\n\", addr.String(), rtt)\n}\np.OnIdle = func() {\n\tfmt.Println(\"finish\")\n}\nerr = p.Run()\nif err != nil {\n\tfmt.Println(err)\n}\n```\n\nIt sends an ICMP packet and wait a response. If it receives a response, it\ncalls \"receive\" callback. After that, MaxRTT time passed, it calls \"idle\"\ncallback. For more detail, refer [godoc][godoc] and if you need more example,\nplease see \"cmd/ping/ping.go\".\n\n## Caution\nThis package implements ICMP ping using both raw socket and UDP. If your program\nuses this package in raw socket mode, it needs to be run as a root user.\n\n## License\ngo-fastping is under MIT License. See the [LICENSE][license] file for details.\n\n[godoc]: http://godoc.org/github.com/tatsushid/go-fastping\n[license]: https://github.com/tatsushid/go-fastping/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvrilo%2Fgo-fastping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvrilo%2Fgo-fastping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvrilo%2Fgo-fastping/lists"}