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
- Host: GitHub
- URL: https://github.com/gregoryv/testnet
- Owner: gregoryv
- License: mit
- Created: 2023-02-07T07:15:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-01T16:23:58.000Z (over 2 years ago)
- Last Synced: 2025-06-15T10:52:51.019Z (about 1 year ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: license.txt
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()
```