Skip to content

Commit

Permalink
Format code and document
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Oct 27, 2021
1 parent 3fb5924 commit 659051f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Usage:
-listen-udp string
listen UDP on ip:port
-ping-interval duration
the interval between ping requests sent by client (default 100ms)
the interval between ping requests sent by client (default 20ms)
```

Server output:
Expand Down
3 changes: 2 additions & 1 deletion cmd/echoping/echoping.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package main
import (
"flag"
"fmt"
"github.com/wxiaoguang/echoping/internal/echoping"
"net/url"
"os"
"strings"
"time"

"github.com/wxiaoguang/echoping/internal/echoping"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions internal/echoping/netudp.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package echoping

import (
"net"
"syscall"
"bytes"
"encoding/binary"
"net"
"syscall"
)

// UDPPacketInfo holds the remote address and the associated
Expand Down

0 comments on commit 659051f

Please sign in to comment.