An open API service indexing awesome lists of open source software.

https://github.com/gregoryv/testnet

Provides in memory network connection for testing
https://github.com/gregoryv/testnet

Last synced: 10 months ago
JSON representation

Provides in memory network connection for testing

Awesome Lists containing this project

README

          

[gregoryv/testnet](https://pkg.go.dev/github.com/gregoryv/testnet) - In memory network connection for testing

## Quick start

```
import "github.com/gregoryv/testnet"

...

conn, srvconn := testnet.Dial("tcp", "somehost:1234")

// closing one side closes the other
defer conn.Close()
```