wlf f051014ac2 提交正常运行的所有代码 1 year ago
..
.travis.yml f051014ac2 提交正常运行的所有代码 1 year ago
LICENSE f051014ac2 提交正常运行的所有代码 1 year ago
README.md f051014ac2 提交正常运行的所有代码 1 year ago
contributing.md f051014ac2 提交正常运行的所有代码 1 year ago
ionet.go f051014ac2 提交正常运行的所有代码 1 year ago

README.md

Build Status

ionet provides a net.Conn and a net.Listener in which connections use an io.Reader and an io.Writer instead of a traditional network stack.

This can be handy in unit tests, because it enables you to mock out the network.

It's also useful when using an external network stack. At PayPal, ionet is used in PayPal Beacon. Beacon uses a Bluetooth Low Energy chip accessed over a serial connection. ionet enables the use of net-based code, such as the stdlib's [net/http]((http://golang.org/pkg/net/http/), with a mediated network.

go get github.com/paypal/ionet

See godoc for usage.

ionet requires Go 1.1 or later, and is released under a BSD-style license similar to Go's.