import (
"net"
"github.com/starboard-nz/echo"
)
...
conn, err := net.Dial("tcp", "golang.org:80")
// wrap conn in echo.Conn and use econn instead of conn
econn := echo.Conn{Conn: conn}
econn.AddFileWrite("/path/to/file.log")
w := econn.AddFileWrite("/path/to/file.go")
// format read/write buffers as Go slices
w.Go = true
// also write to stderr
econn.AddConsoleWriter()
-
Notifications
You must be signed in to change notification settings - Fork 0
net.Conn wrapper for debugging network communication issues
License
starboard-nz/echo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
net.Conn wrapper for debugging network communication issues
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published