package fakenet
import "cuelang.org/go/internal/golangorgx/tools/fakenet"
Index ¶
Functions ¶
func NewConn ¶
func NewConn(name string, in io.ReadCloser, out io.WriteCloser) net.Conn
NewConn returns a net.Conn built on top of the supplied reader and writer. It decouples the read and write on the conn from the underlying stream to enable Close to abort ones that are in progress. It's primary use is to fake a network connection from stdin and stdout.
Source Files ¶
conn.go
- Version
- v0.12.0 (latest)
- Published
- Jan 30, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 8 hours ago –
Tools for package owners.