mirror of
https://github.com/taigrr/go-fastping
synced 2025-01-18 05:03:15 -08:00
Apply go fmt
This commit is contained in:
parent
2fb7a54c20
commit
be887297cb
10
fastping.go
10
fastping.go
@ -81,11 +81,11 @@ type packet struct {
|
||||
type context struct {
|
||||
stop chan bool
|
||||
done chan bool
|
||||
err error
|
||||
err error
|
||||
}
|
||||
|
||||
func newContext() *context {
|
||||
return &context {
|
||||
return &context{
|
||||
stop: make(chan bool),
|
||||
done: make(chan bool),
|
||||
}
|
||||
@ -96,9 +96,9 @@ type Pinger struct {
|
||||
id int
|
||||
seq int
|
||||
// key string is IPAddr.String()
|
||||
addrs map[string]*net.IPAddr
|
||||
ctx *context
|
||||
mu sync.Mutex
|
||||
addrs map[string]*net.IPAddr
|
||||
ctx *context
|
||||
mu sync.Mutex
|
||||
// Number of (nano,milli)seconds of an idle timeout. Once it passed,
|
||||
// the library calls an idle callback function. It is also used for an
|
||||
// interval time of RunLoop() method
|
||||
|
Loading…
x
Reference in New Issue
Block a user