1
0
mirror of https://github.com/taigrr/go-fastping synced 2025-01-18 05:03:15 -08:00

Rewrite some parts of the README for English correctness

This commit is contained in:
Cameron Sparr 2016-01-08 10:53:29 -07:00 committed by Tatsushi Demachi
parent 06cac0fecd
commit d7bb493dee

View File

@ -1,18 +1,17 @@
go-fastping go-fastping
=========== ===========
go-fastping is a Go language's ICMP ping library inspired by AnyEvent::FastPing go-fastping is a Go language ICMP ping library, inspired by the `AnyEvent::FastPing`
Perl module to send ICMP ECHO REQUEST packets quickly. Original Perl module is Perl module, for quickly sending ICMP ECHO REQUEST packets. Original Perl module
available at is available at http://search.cpan.org/~mlehmann/AnyEvent-FastPing-2.01/
http://search.cpan.org/~mlehmann/AnyEvent-FastPing-2.01/
It hasn't been fully implemented original functions yet. All original functions haven't been implemented yet.
[![GoDoc](https://godoc.org/github.com/tatsushid/go-fastping?status.svg)](https://godoc.org/github.com/tatsushid/go-fastping) [![GoDoc](https://godoc.org/github.com/tatsushid/go-fastping?status.svg)](https://godoc.org/github.com/tatsushid/go-fastping)
## Installation ## Installation
Install and update this go package with `go get -u github.com/tatsushid/go-fastping` Install and update with `go get -u github.com/tatsushid/go-fastping`
## Examples ## Examples
@ -38,9 +37,10 @@ if err != nil {
} }
``` ```
It sends an ICMP packet and wait a response. If it receives a response, it The example sends an ICMP packet and waits for a response. If it receives a
calls "receive" callback. After that, MaxRTT time passed, it calls "idle" response, it calls the "receive" callback. After that, once MaxRTT time has
callback. For more detail, refer [godoc][godoc] and if you need more example, passed, it calls the "idle" callback. For more details,
refer [to the godoc][godoc], and if you need more examples,
please see "cmd/ping/ping.go". please see "cmd/ping/ping.go".
## Caution ## Caution